This page describes best practices and instructions for safely deleting an app.
Steps to delete an app
The following instructions are for the Google Cloud console.
Console
To delete an app, follow these steps:
In the Google Cloud console, go to the Gemini Enterprise page.
For the app that you want to delete, click , and then click Delete.
In the Delete the app? dialog, enter your app name, and then click Confirm.
Best practices for deleting an app with an IAM policy
Deleting an app is an irreversible action. Therefore, if your app has configured access controls, you can remove all users from its IAM policy before deleting the app. Follow these steps:
Clear the IAM policy: Before deleting the app, clear its IAM policy to remove user access. You can do this by setting an empty
bindingsarray.Get the current IAM policy of your app using the
getIamPolicymethod.REST
curl -X GET \ -H "Authorization: Bearer $(gcloud auth print-access-token)" \ -H "Content-Type: application/json" \ "https://ENDPOINT_LOCATION-discoveryengine.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/collections/default_collection/engines/APP_ID:getIamPolicy"Replace the following:
PROJECT_ID: the ID of your project.ENDPOINT_LOCATION: the multi-region for your API request. Specify one of the following values:usfor the US multi-regioneufor the EU multi-regionglobalfor the Global location
LOCATION: the multi-region of your data store:global,us, oreuAPP_ID: the ID of the app that you want to configure.
To remove all existing bindings, use the
setIamPolicymethod with an emptybindingsarray in the request body.REST
curl -X POST \ -H "Authorization: Bearer $(gcloud auth print-access-token)" \ -H "Content-Type: application/json" \ -d '{ "policy": { "etag": "ETAG", "bindings": [] } }' \ "https://ENDPOINT_LOCATION-discoveryengine.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/collections/default_collection/engines/APP_ID:setIamPolicy"Replace the following:
ETAG: theetagvalue you got as the response when you used thegetIamPolicymethod.PROJECT_ID: the ID of your project.ENDPOINT_LOCATION: the multi-region for your API request. Specify one of the following values:usfor the US multi-regioneufor the EU multi-regionglobalfor the Global location
LOCATION: the multi-region of your data store:global,us, oreuAPP_ID: the ID of the app that you want to configure.
Confirm user impact: After clearing the policy and allowing for propagation time, confirm that the access revocation hasn't caused any unintended issues for users.
Delete the app: After you've confirmed the impact, proceed with deleting the app as described in the Steps to delete an app section.