IBM Cloud Docs
Removing an instance

Removing an instance

You can remove an instance of the IBM Cloud Monitoring service from the IBM Cloud UI or through the command line.

When you remove an instance from the IBM Cloud, consider the following information to tidy up:

  1. Write down the list of sources that forward metrics to the IBM Cloud Monitoring instance that you want to remove. You must remove the agent from each source.

  2. Remove permissions that are granted to users to work with the instance.

    If you use an access group to manage permissions to access the instance, you must remove the access group.

    If you use an access group to manage permissions to access different service instances, you must remove the policies that grant permissions to the instance that you want to remove.

    If you grant individual policies to users, you must gather the information of each user that has access to the instance. Then, you must remove one by one the policies that relate to the instance that you want to delete.

Then, delete the instance from the IBM Cloud Dashboard.

Removing an instance through the IBM Cloud UI

To remove an instance of IBM Cloud Monitoring by using the IBM Cloud UI, complete the following steps:

  1. Log in to your IBM Cloud account.

  2. Click the Menu icon Menu icon > Observability.

  3. Select Monitoring. The list of the instances is displayed.

  4. Click the Actions icon Three dots icon next to the instance you want to delete and click Delete.

Removing an instance through the CLI

To remove an instance of IBM Cloud Monitoring through the command line, complete the following steps:

  1. [Pre-requisite] Installation of the IBM Cloud CLI. If the CLI is installed, continue with the next step.

  2. Log in to the region in the IBM Cloud where you want to provision the instance. Run the following command: ibmcloud login

  3. Set the resource group where the instance is provisioned. Run the following command: ibmcloud target

    By default, the default resource group is set.

  4. Remove the instance. Run the ibmcloud resource service-instance-delete command:

    ibmcloud resource service-instance-delete NAME --recursive
    

    Where NAME is the name of the instance

    For example, to remove an instance, run the following command:

    ibmcloud resource service-instance-delete monitoring-instance-01 --recursive
    

    The --recursive option is used to delete the service keys that were associated with the monitoring instance.