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
( 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
.
You might also be able to get the required permissions through custom roles or other predefined roles .
For information on granting Secure Source Manager roles, see Access control with IAM and Grant users instance access .
Delete an instance
-
To delete your Secure Source Manager instance and all associated data, run the following command:
gcloud source-manager instances delete INSTANCE_NAME \ --region = REGIONReplace the following:
-
INSTANCE_NAMEwith the name of the instance you want to delete. -
REGIONwith the location of your instance. For information on supported locations, see Locations .
-
-
Check the status of the operation with the following command:
gcloud source-manager operations describe projects/ PROJECT_ID /locations/ REGION /operations/ OPERATION_IDWhere
OPERATION_IDis the value ofname:in the response from thedeletecommand.

