Tuesday 11 January 2022

IBM Cloud - Cleaning things up

I've been looking through my IBM Cloud account, with a view to nuking unwanted / unused components, services, capabilities etc.

Today I'm targeting Cloud Foundry (CF), and, via the web UI, I found that I had a Cloud Foundry Org harking back to 2014, named david_hay@uk.ibm.com which contains a space called dev.

However, I was trying / failing to find / delete it from the command-line.

I ran: -

ic cf spaces

which returned: -

Invoking 'cf spaces'...

Getting spaces in org david_hay@uk.ibm.com as david_hay@uk.ibm.com...

No spaces found.

Similarly, when I tried to delete the dev space: -

ic cf delete-space dev

Invoking 'cf delete-space dev'...

Really delete the space dev? [yN]: y
Deleting space dev in org david_hay@uk.ibm.com as david_hay@uk.ibm.com...
Space 'dev' not found.
FAILED

And then ... looking back at the web UI, I saw: -

Region: US South

and thought "Ah, hah"

From the CLI, I ran: -

ic target 

which reported: -

Region:            eu-gb   

So I switched my region: -

ic target -r us-south

and re-ran: -

ic cf spaces

Invoking 'cf spaces'...

Getting spaces in org david_hay@uk.ibm.com as david_hay@uk.ibm.com...

name
dev

and then: -

ic cf delete-space dev

Invoking 'cf delete-space dev'...

Really delete the space dev? [yN]: y
Deleting space dev in org david_hay@uk.ibm.com as david_hay@uk.ibm.com...
OK

Nice!

No comments:

Visual Studio Code - Wow 🙀

Why did I not know that I can merely hit [cmd] [p]  to bring up a search box allowing me to search my project e.g. a repo cloned from GitHub...