Documentation
API Reference
Playground
Chat completionsResponsesSystem One
Document classificationEmbeddings

Studio API

Upload fileList filesRetrieve fileDelete file
Create jobRetrieve job

Search

Create vector storeList vector storesRetrieve vector storeModify vector storeDelete vector storeAdd file to vector storeList files in vector storeRetrieve file in vector storeRemove file from vector storeCreate file batchRetrieve file batchList files in file batchCancel file batchSearch vector store
Create response

Remove file from vector store

Remove a file and its associated vectors from a vector store.

DELETE
/vector_stores/{vector_store_id}/files/{file_id}
/vector_stores/{vector_store_id}/files/{file_id}

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Path Parameters

vector_store_id
Required
string

The ID of the vector store.

file_id
Required
string

The ID of the file.


Example

Request

curl -X DELETE https://api.upstage.ai/v2/vector_stores/vs_abc123def456/files/file_xyz789 \
  -H "Authorization: Bearer $UPSTAGE_API_KEY"

Response

{
  "id": "file_xyz789",
  "object": "vector_store.file.deleted",
  "deleted": true
}

Retrieve file in vector store

Check one file in a vector store by vector store ID and file ID. Covers the path parameters, the vector store file object returned (status, last_error, usage_bytes, attributes), and an example request and response.

Create file batch

Add up to 50 files to a vector store in one request for asynchronous indexing. Covers the request body (file_ids, chunking_strategy, attributes), the file batch object returned (status, file_counts), and an example request and response.

On this page

Remove file from vector storeExampleRequestResponse