> ## 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.

# File Job Status

> Poll file upload or delete jobs using the Python client

## files.job\_status

Poll file upload or file delete job progress. Same endpoint for upload (`job_type`: `file_ingest`) and delete (`job_type`: `file_delete`).

```python theme={null}
client.files.job_status(namespace_name: str, job_id: str) -> dict[str, Any]
```

**API:** `GET /namespaces/{namespace_name}/file-jobs/{job_id}` — see [File job status](/on-prem/api-references/files/file-job-status)

### Examples

```python theme={null}
from moorcheh import MoorchehClient

with MoorchehClient("http://localhost:8080") as client:
    job = client.files.job_status("my-documents", job_id)
    if job["job_type"] == "file_ingest":
        print(job["chunks_processed"], "/", job["chunks_total"])
    elif job["job_type"] == "file_delete":
        print("deleted", job["items_deleted"])
```

## Related Operations

* [Upload Files](/on-prem/python-client/files/upload-files)
* [Delete File](/on-prem/python-client/files/delete-file)
