Delete document by ID or customId
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.supermemory.ai/v3/documents/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.supermemory.ai/v3/documents/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)curl --request DELETE \
--url https://api.supermemory.ai/v3/documents/{id} \
--header 'Authorization: Bearer <token>'{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}Delete document by ID or customId
Delete a document by ID or customId
DELETE
/
v3
/
documents
/
{id}
Delete document by ID or customId
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.supermemory.ai/v3/documents/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.supermemory.ai/v3/documents/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)curl --request DELETE \
--url https://api.supermemory.ai/v3/documents/{id} \
--header 'Authorization: Bearer <token>'{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}{
"error": "<string>",
"details": "<string>"
}Was this page helpful?