Delete a stored document

DELETE
/v1/agents/{id}/store/{collection}/docs/{docId}

Deletes one document. Deleting one that is not there succeeds with deleted: false.

Requires an API key with the workspace:write scope.

Authorization

apiKey
headerAuthorizationBearer <token>

A secret API key from the dashboard (Developers → API keys): vl_live_…, or vl_test_… for test mode. Each operation says which scope the key needs.

Path Parameters

id*string

The agent id.

collection*string

The collection id.

docId*string

The document id.

Response Body

Whether a document was deleted

application/json
  1. response
deleted*boolean
Example Request
curl -X DELETE "https://api.vlayers.ai/v1/agents/$AGENT_ID/store/$COLLECTION/docs/$DOC_ID" \  -H "Authorization: Bearer $VOICELAYER_API_KEY"
Example Response
{  "deleted": true}