Python
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)
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Delete a file along with its associated chunks, embeddings, and vectors. This operation is irreversible.
Memic API key. Every key is bound to exactly one environment — get one from the Memic dashboard under API Keys.
Successful Response