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/generative-ai-app-builder/docs/delete-engine.md.txt) that the data store is connected to.

### Structured and unstructured data stores

Before attempting to delete a structured or unstructured data store, if your
data store is connected to an app, you must [delete the app](https://docs.cloud.google.com/generative-ai-app-builder/docs/delete-engine.md.txt) that
it is connected to.

### Website data stores

Before attempting to delete a website data store, be aware of the following:

- **You can't delete a data store that is connected to an app.** If your data
  store is connected to an app, you must [delete the app](https://docs.cloud.google.com/generative-ai-app-builder/docs/delete-engine.md.txt) that it
  is connected to.

- **You can't delete a data store that is in the process of upgrading to
  [advanced website indexing](https://docs.cloud.google.com/generative-ai-app-builder/docs/about-advanced-features.md.txt#advanced-website-indexing) or downgrading to
  standard indexing.** You must wait for the upgrade or downgrade to complete
  before deleting the data store.

## Procedure

### Console

To delete a data store, follow these steps:

1. In the Google Cloud console, go to the **AI Applications** page, and
   then click **Data Stores**.

   [Go to the Data Stores page](https://console.cloud.google.com/gen-app-builder/data-stores)
2. For the data store that you want to delete, click , and then click **Delete**.

<br />