This page describes how to delete a data store.

> [!WARNING]
> Deletion is an asynchronous process that can take days. You can't reuse a data store ID until the original data store is completely deleted. To prevent this from blocking your workflow, we strongly recommend that you use a unique ID for every 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](https://docs.cloud.google.com/gemini/enterprise/docs/delete-app.md.txt) 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](https://console.cloud.google.com/gemini-enterprise/data-stores)
2. For the data store that you want to delete, click , and then click **Delete**.

<br />