Delete an instance

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

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

    gcloudsource-managerinstancesdeleteINSTANCE_NAME\
    --region=REGION
    

    Replace the following:

    • INSTANCE_NAME with the name of the instance you want to delete.
    • REGION with the location of your instance. For information on supported locations, see Locations.
  2. Check the status of the operation with the following command:

    gcloudsource-manageroperationsdescribeprojects/PROJECT_ID/locations/REGION/operations/OPERATION_ID
    

    Where OPERATION_ID is the value of name: in the response from the delete command.

What's next

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月17日 UTC.