Cloud Global

 View Only

 Error Message on Cloud CLI

Thomas    (Tom) Mertens's profile image
Thomas (Tom) Mertens posted Tue April 15, 2025 08:09 PM

Hello Everyone,

 I currently have two Cloud accounts, but I need to delete one of them. Despite several unsuccessful attempts to delete the account manually, I decided to use the Cloud CLI. After trying various methods without success, I resorted to using the following IBM Cloudshell CLI

 tgmertens@cloudshell:~$ ibmcloud account user-remove USER_Thomas_Mertens-c2577258-f,--force

  

Really remove the user USER_Thomas_Mertens-c2577258-f,--force and everything associated with it? [y/N] > y                    

FAILED

Could not find user USER_Thomas_Mertens-c2577258-f,--force under account dc95642c66014ac7a7f4c5f445f4d923 

does anyone see anything wrong with this other than account "dc95642c66014ac7a7f4c5f445f4d923" which is correct

Support has not helped as of yet

Thanks everyone in advance

Tom

Venkata Thej deep Jakkaraju's profile image
Venkata Thej deep Jakkaraju

Hi Tom,

Nothing is wrong with your account ID. The issue is just the way the command was typed.

In your command:

ibmcloud account user-remove USER_Thomas_Mertens-c2577258-f,--force

The CLI is reading --force as part of the username because there’s no space and there’s a comma before it. So it’s trying to find a user literally named:

USER_Thomas_Mertens-c2577258-f,--force

That user obviously doesn’t exist — which is why you get “Could not find user”.

Fix:

Run it like this (no comma, space before the flag):

ibmcloud account user-remove USER_Thomas_Mertens-c2577258-f --force

If it still doesn’t work

  1. Make sure you’re targeting the correct account:  ibmcloud target
  2. List users to confirm the exact username:  ibmcloud account users.

    Copy the username exactly as shown and retry.

    Most likely though , it’s just the small syntax typo. Happens to all of us 🙂