IBM Cloud Docs
Removing trusted profiles

Removing trusted profiles

When you remove trusted profiles, compute resources and federated users are unlinked from the profile and can no longer apply the trusted profile identity.

To remove trusted profiles, you must be assigned the administrator or operator role within the account, or on the IAM Identity Service.

When you remove trusted profiles, you revoke all active sessions. Users are immediately logged out and the removed profiles are no longer available to connect to the target account. API calls that use access tokens might be successful until the access token expires.

Removing trusted profiles in the console

  1. To see the full list of trusted profiles in your account, go to Manage > Access (IAM) in the IBM Cloud console, and select Trusted profiles.
  2. Click the Actions icon Actions icon next to the trusted profile you want to remove, and select Remove.

Removing trusted profiles by using the CLI

You can remove a trusted profile from your account by using the CLI. For more information, see the IBM Cloud CLI.

  1. Log in, and select the account.

    ibmcloud login
    
  2. Check the list of trusted profiles for the current account and select the one that you want to remove. The following command shows the list of trusted profiles for your IBM Cloud account:

    ibmcloud iam trusted-profiles
    
  3. Remove the trusted profile from your account by running the following command. Specify the ID or the name of the trusted profile that you would like to remove.

    ibmcloud iam trusted-profile-delete <IDorName>
    

For example, the following command removes a trusted profile that is named Test trusted profile.

ibmcloud iam trusted-profile-delete <Test trusted profile>

Removing trusted profiles by using the API

To remove a trusted profile from your account, call the following:

curl -X DELETE 'https://iam.cloud.ibm.com/v1/profiles/PROFILE_ID' -H 'Authorization: Bearer TOKEN'

For more information, see the IAM Identity Services API.