Delete a data store

This page describes how to delete a data store.

Before you begin

Before deleting a structured or unstructured data store, if your data store is connected to an app, you must do one of the following:

  • To keep the app and delete only the data store, unlink the data store from its connected app.
  • To delete both the app and the data store, first Delete the app that the data store is connected to.

The following rules also apply:

  • You can't delete a data store that a data connector created by using the dataStores.delete method; the request fails with the error Connected data store can only be deleted by internal requests. Delete the data connector instead, which deletes its data stores.
  • Before you delete a data connector whose actions are enabled in an app or custom agent, turn off those actions or unlink the data store from the app. Otherwise, the deletion fails with the error Deleting Data Connector with linked assistant actions is not supported. Please unlink assistant actions first. This applies to every connector that provides actions, such as Jira, Outlook, and custom MCP servers.
  • The assistant of an app uses a data store that is created together with the app. You can't delete that data store directly; the request fails with the error DataStore … is managed by Engine … and cannot be deleted directly. The data store is deleted when you delete the app.
  • If you don't unlink the data store first, the request fails with the error DataStore … currently exists in list at index … of Engine ….

Procedure

Console

To delete a data store, follow these steps:

  1. In the Google Cloud console, go to the Gemini Enterprise page, and then click Data Stores.

    Go to the Data Stores page

  2. For the data store that you want to delete, click , and then click Delete.