Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.moorcheh.ai/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Polls an async namespace delete started by moorcheh namespace-delete. Prints job progress as JSON.

Synopsis

moorcheh namespace-delete-job-status --namespace-name NAME --job-id JOB_ID [--base-url URL]

Options

FlagRequiredDescription
--namespace-nameYesNamespace the job belongs to
--job-idYesJob id from namespace-delete output
--base-urlNoDefault http://localhost:8080

Examples

moorcheh namespace-delete --namespace-name my-documents

moorcheh namespace-delete-job-status \
  --namespace-name my-documents \
  --job-id job-682efd0be4484e49b7bf787466d6e9a4

Output

Prints JSON from GET /namespaces/{namespace_name}/delete-jobs/{job_id}:
job_id
string
Delete job id.
namespace_name
string
Namespace being deleted.
status
string
Job state: "running", "completed", or "failed". On lookup errors: "failure".
total_items
number
Items in the namespace when delete started.
deleted_items
number
Items removed so far.
last_error
string | null
Error when job status is "failed".
started_at
string
Job start time (ISO 8601 UTC).
updated_at
string
Last update time (ISO 8601 UTC).
finished_at
string | null
Job finish time; null while running.
message
string
Error description when the job cannot be found.
Example output (completed)
{
  "job_id": "job-682efd0be4484e49b7bf787466d6e9a4",
  "namespace_name": "my-documents",
  "status": "completed",
  "total_items": 42,
  "deleted_items": 42,
  "last_error": null,
  "started_at": "2026-05-21T12:10:00.000Z",
  "updated_at": "2026-05-21T12:10:05.000Z",
  "finished_at": "2026-05-21T12:10:05.000Z"
}

Exit codes

CodeMeaning
0Job status returned
1API error (404, etc.)