Skip to main content
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

namespace_name
string
required
Text namespace.

Body

path
string
Container path (e.g. /uploads/document.pdf). Must match the path used at upload.
file_id
string
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

status
string
"success" when the delete job started.
message
string
Human-readable result.
job_id
string
Async job id. Poll with File job status (job_type: file_delete).
file_id
string
File id being deleted.
namespace_name
string
Target namespace.
absolute_path
string
Container path of the file being deleted.

Errors