Delete file
import requests
url = "https://api.memic.ai/api/v1/files/{file_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)curl --request DELETE \
--url https://api.memic.ai/api/v1/files/{file_id} \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memic.ai/api/v1/files/{file_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Endpoints
Delete file
Delete a file along with its associated chunks, embeddings, and vectors. This operation is irreversible.
DELETE
/
api
/
v1
/
files
/
{file_id}
Delete file
import requests
url = "https://api.memic.ai/api/v1/files/{file_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)curl --request DELETE \
--url https://api.memic.ai/api/v1/files/{file_id} \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memic.ai/api/v1/files/{file_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}