## Delete Parse Job

`ParsingDeleteResponse parsing().delete(ParsingDeleteParamsparams = ParsingDeleteParams.none(), RequestOptionsrequestOptions = RequestOptions.none())`

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

A job that a document in Evaluate reads its ground truth from can't be deleted. It is kept until the document is removed from Evaluate or the project is deleted.

Returns the identifiers of the deleted job.

### Parameters

- `ParsingDeleteParams params`

  - `Optional<String> jobId`

  - `Optional<String> organizationId`

  - `Optional<String> projectId`

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

  - `String id`

    Identifier of the deleted parse job

  - `String projectId`

    Project the deleted job belonged to

### Example

```java
package ai.llamaindex.llamacloud.example;

import ai.llamaindex.llamacloud.client.LlamaCloudClient;
import ai.llamaindex.llamacloud.client.okhttp.LlamaCloudOkHttpClient;
import ai.llamaindex.llamacloud.models.parsing.ParsingDeleteParams;
import ai.llamaindex.llamacloud.models.parsing.ParsingDeleteResponse;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        LlamaCloudClient client = LlamaCloudOkHttpClient.fromEnv();

        ParsingDeleteResponse parsing = client.parsing().delete("job_id");
    }
}
```

#### Response

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