Delete an instance Stay organized with collections Save and categorize content based on your preferences.
Required Roles
To get the permissions that you need to delete an instance, ask your administrator to grant you theSecure Source Manager Instance Manager (roles/securesourcemanager.instanceManager) IAM role on the Secure Source Manager instance. For more information about granting roles, seeManage access to projects, folders, and organizations.
You might also be able to get the required permissions throughcustom roles or otherpredefined roles.
For information on granting Secure Source Manager roles,seeAccess control with IAM andGrant users instance access.
Delete an instance
To delete your Secure Source Manager instance and all associated data, run thefollowing command:
gcloudsource-managerinstancesdeleteINSTANCE_NAME\--region=REGIONReplace the following:
INSTANCE_NAMEwith the name of the instance you want to delete.REGIONwith the location of your instance. For information onsupported locations, seeLocations.
Check the status of the operation with the following command:
gcloudsource-manageroperationsdescribeprojects/PROJECT_ID/locations/REGION/operations/OPERATION_IDWhere
OPERATION_IDis the value ofname:in theresponse from thedeletecommand.
What's next
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-19 UTC.