Delete File Index
File storage
Delete File Index
Remove a file’s chunks and summaries from the index. The source file on disk is kept.
POST
Delete File Index
Overview
Deletes all indexed chunks and summary chunks for one file, and removes its file registry entry. The PDF or document under~/.moorcheh/uploads is not deleted.
Provide exactly one of path or file_id.
Path parameters
Text namespace.
Body
Container path (e.g.
/uploads/document.pdf). Must match the path used at upload.File id from List files.
Direct API calls use container paths. The CLI accepts a host path under
~/.moorcheh/uploads and converts it automatically.Request examples
Response fields
"success" when the delete job started.Human-readable result.
Async job id. Poll with File job status (
job_type: file_delete).File id being deleted.
Target namespace.
Container path of the file being deleted.
Errors
| HTTP | Cause |
|---|---|
| 400 | Both or neither of path and file_id provided; invalid path |
| 404 | Namespace or file not found |