## Delete Parse Job

`parsing.delete(strjob_id, ParsingDeleteParams**kwargs)  -> ParsingDeleteResponse`

**delete** `/api/v2/parse/{job_id}`

Delete a parse job and its results.

The job must be in a terminal state (COMPLETED, FAILED, CANCELLED). Cancel a job that is still running before deleting it.

Returns the identifiers of the deleted job.

### Parameters

- `job_id: str`

- `organization_id: Optional[str]`

- `project_id: Optional[str]`

### Returns

- `class ParsingDeleteResponse: …`

  Confirmation that a parse job was deleted.

  A deleted job can no longer be fetched, so the response echoes back what it
  was rather than pointing at it. Returning the identifiers instead of an
  empty body lets a caller assert on the delete it just made without a
  follow-up request.

  - `id: str`

    Identifier of the deleted parse job

  - `project_id: str`

    Project the deleted job belonged to

### Example

```python
import os
from llama_cloud import LlamaCloud

client = LlamaCloud(
    api_key=os.environ.get("LLAMA_CLOUD_API_KEY"),  # This is the default and can be omitted
)
parsing = client.parsing.delete(
    job_id="job_id",
)
print(parsing.id)
```

#### Response

```json
{
  "id": "pjb-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
  "project_id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}
```
