Delete a stored document
DELETE
Deletes one document. Deleting one that is not there succeeds with deleted: false.
Requires an API key with the workspace:write scope.
apiKeyheader
AuthorizationBearer <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.
id*stringThe agent id.
collection*stringThe collection id.
docId*stringThe document id.
Whether a document was deleted
application/json- response
deleted*booleancurl -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}