> ## AI Agent Context > Get the complete documentation index at: https://aistudio.google.com/llms.txt > Use this file to discover all available pages. > For the full documentation in a single file, fetch: https://aistudio.google.com/llms-full.txt # Deleting a file search store {% mark class="http-delete" %}{% icon name="close" /%}`DELETE`{% /mark %} `https://generativelanguage.googleapis.com/v1beta/fileSearchStores/{fileSearchStore}` Deletes a [`FileSearchStore`](/api-reference/file-search/file-search-stores#Resource:FileSearchStore). {% two-column-layout %} {% left-column %} ## Parameters {% class="hide-from-toc" id="parameters" %} {% section class="api-ref-property-list" %} **fileSearchStore**: {% mark %}required{% /mark %} `string` The file search store ID. Forms the resource name `fileSearchStores/{fileSearchStore}`. {% hr /%} **force**: `boolean` Optional. If set to true, any `Document`s and objects related to this [`FileSearchStore`](/api-reference/file-search/file-search-stores#Resource:FileSearchStore) will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if [`FileSearchStore`](/api-reference/file-search/file-search-stores#Resource:FileSearchStore) contains any `Document`s. {% /section %} {% /left-column %} {% right-column class="sticky" %} **Example request** {% class="example-heading" %} {% tabs %} {% tab label="REST" %} ```sh curl -X DELETE "https://generativelanguage.googleapis.com/v1beta/fileSearchStores/$FILE_SEARCH_STORE_ID" \ -H "x-goog-api-key: $GEMINI_API_KEY" ``` {% /tab %} {% /tabs %} {% /right-column %} {% /two-column-layout %} ## Response {% class="hide-from-toc" id="response" %} {% section class="api-ref-property-list" /%}