## Required Roles


To get the permissions that
you need to delete an instance,

ask your administrator to grant you the
[Secure Source Manager Instance Manager](https://docs.cloud.google.com/iam/docs/roles-permissions/securesourcemanager#securesourcemanager.instanceManager) (`roles/securesourcemanager.instanceManager`) IAM role on the Secure Source Manager instance.


For more information about granting roles, see [Manage access to projects, folders, and organizations](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access).


You might also be able to get
the required permissions through [custom
roles](https://docs.cloud.google.com/iam/docs/creating-custom-roles) or other [predefined
roles](https://docs.cloud.google.com/iam/docs/roles-overview#predefined).

For information on granting Secure Source Manager roles,
see [Access control with IAM](https://docs.cloud.google.com/secure-source-manager/docs/access-control) and
[Grant users instance access](https://docs.cloud.google.com/secure-source-manager/docs/grant-users-instance-access).

## Delete an instance

1. To delete your Secure Source Manager instance and all associated data, run the
   following command:

       gcloud source-manager instances delete INSTANCE_NAME \
           --region=REGION

   Replace the following:
   - <var translate="no">`INSTANCE_NAME`</var> with the name of the instance you want to delete.
   - <var translate="no">`REGION`</var> with the location of your instance. For information on supported locations, see [Locations](https://docs.cloud.google.com/secure-source-manager/docs/locations).
2. Check the status of the operation with the following command:

       gcloud source-manager operations describe projects/PROJECT_ID/locations/REGION/operations/OPERATION_ID

   Where <var translate="no">`OPERATION_ID`</var> is the value of `name:` in the
   response from the `delete` command.

## What's next

- [Disable the Secure Source Manager API](https://docs.cloud.google.com/secure-source-manager/docs/enable-disable#disable).
- [List and view instances](https://docs.cloud.google.com/secure-source-manager/docs/list-view-instances).