## Delete Classify Job

`ClassifyDeleteResponse classify().delete(ClassifyDeleteParamsparams = ClassifyDeleteParams.none(), RequestOptionsrequestOptions = RequestOptions.none())`

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

Delete a classify job and its result.

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

- `ClassifyDeleteParams params`

  - `Optional<String> jobId`

  - `Optional<String> organizationId`

  - `Optional<String> projectId`

### Returns

- `class ClassifyDeleteResponse:`

  Identifiers for a deleted classify job.

  - `String id`

    Identifier of the deleted classify job

  - `Optional<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.classify.ClassifyDeleteParams;
import ai.llamaindex.llamacloud.models.classify.ClassifyDeleteResponse;

public final class Main {
    private Main() {}

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

        ClassifyDeleteResponse classify = client.classify().delete("job_id");
    }
}
```

#### Response

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