namespaces.delete
Removes a namespace and every item in it. The server starts an async delete job; by default the client waits until the job completes so you can safely recreate the same namespace name immediately afterward.DELETE /namespaces/{namespace_name} — see Delete namespace
Parameters
str
required
Name of the namespace to delete.
bool
default:"True"
When
True (default), poll the delete job until completed or failed before returning.float
default:"0.2"
Seconds between delete-job status polls when
wait=True.float
default:"120.0"
Max seconds to wait for job completion when
wait=True.dict[str, Any] — status, job_id, and when wait=True, final delete job fields (for example delete_job.status).
Raises: MoorchehApiError — HTTP 404 when the namespace is not found.
Examples
Delete and Wait (default)
Return Immediately With job_id
Manual Poll (wait=False)
Error Handling
Error Handling Example
Related Operations
- Delete Job Status — poll delete progress
- Create Namespace — add a namespace
- API: Delete namespace
- CLI: moorcheh namespace-delete