curl -X DELETE "https://api.memanto.ai/agents/my-agent/files/file_…" \
-H "x-api-key: $MEMANTO_API_KEY"
{
"agent_id": "my-agent",
"file_id": "file_…",
"job_id": "job_…",
"status": "deleting",
"storage_key": "…",
"hint": "Poll GET .../file-jobs/job_…. agent_files row is removed when memory cleanup finishes."
}
Files
Delete File
Delete a file and the memories made from it.
DELETE
/
agents
/
{agent_id}
/
files
/
{file_id}
curl -X DELETE "https://api.memanto.ai/agents/my-agent/files/file_…" \
-H "x-api-key: $MEMANTO_API_KEY"
{
"agent_id": "my-agent",
"file_id": "file_…",
"job_id": "job_…",
"status": "deleting",
"storage_key": "…",
"hint": "Poll GET .../file-jobs/job_…. agent_files row is removed when memory cleanup finishes."
}
Overview
Deletes the file and the memories made from it. Deletion runs in the background as its own job: poll Get File Job with the returnedjob_id.
Authentication
Your Memanto Cloud API key (
mk_...). See Authentication.Path Parameters
The file’s ID, from Upload File or List Files.
curl -X DELETE "https://api.memanto.ai/agents/my-agent/files/file_…" \
-H "x-api-key: $MEMANTO_API_KEY"
{
"agent_id": "my-agent",
"file_id": "file_…",
"job_id": "job_…",
"status": "deleting",
"storage_key": "…",
"hint": "Poll GET .../file-jobs/job_…. agent_files row is removed when memory cleanup finishes."
}