Delete context vault document
curl --request DELETE \
--url https://api.memcontext.in/api/context-vault/documents/{documentId} \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memcontext.in/api/context-vault/documents/{documentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/context-vault/documents/{documentId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"deleted": true,
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deletedMemoryCount": 123,
"preservedMemoryCount": 123
}Context Vault
Delete context vault document
Deletes the document and its citations. Extracted memories stop appearing only when this document is their only source; memories also supported by other documents are preserved.
DELETE
https://api.memcontext.in
/
api
/
context-vault
/
documents
/
{documentId}
Delete context vault document
curl --request DELETE \
--url https://api.memcontext.in/api/context-vault/documents/{documentId} \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memcontext.in/api/context-vault/documents/{documentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/context-vault/documents/{documentId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"deleted": true,
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deletedMemoryCount": 123,
"preservedMemoryCount": 123
}Authorizations
ApiKeyAuthCookieAuth
API key created from the MemContext dashboard. Keys are prefixed with mc_, bound to one workspace, and API-key requests cannot override that workspace.
