---
title: "DELETE /vector_stores/{vectorStoreId}/files/{fileId}"
method: DELETE
path: "/vector_stores/{vectorStoreId}/files/{fileId}"
---

# DELETE /vector_stores/{vectorStoreId}/files/{fileId}

`DELETE /vector_stores/{vectorStoreId}/files/{fileId}`

Deletes a vector store file. This removes the file‐to‐store link (does not delete the file itself).

## Path parameters

- `vectorStoreId` string, required
- `fileId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

The request has succeeded.

- VectorStoreFileDeletionStatus — Response object for deleting a vector store file relationship.
  - `id` string, required — The ID of the resource specified for deletion.
  - `deleted` boolean, required — A value indicating whether deletion was successful.
  - `object` 'vector_store.file.deleted', required — The object type, which is always 'vector_store.deleted'.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/ai-azure-ai-agents.md) · [All operations](https://skmtc.net/azure/apis/ai-azure-ai-agents/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/ai-azure-ai-agents/versions/de4a99f09829/schema)
