You can turn off Agent Search by disabling the
Discovery Engine API. Disabling the Discovery Engine API has the
following effects:

- All Gemini Enterprise and Agent Search resources might be deleted
- Charges might continue to appear for up to a day after disabling the API

Because Agent Search and
Gemini Enterprise are based on
the Discovery Engine API, disabling the Discovery Engine API turns off
all these products and any code that calls the Discovery Engine API fails.

To disable the Discovery Engine API, follow these steps:

1. In the Google Cloud console, go to the [**Discovery Engine API Service Details**](https://console.cloud.google.com/apis/api/discoveryengine.googleapis.com) page.
2. Click **Disable API**.
3. In the **Disable Discovery Engine API?** box, click **Disable**.