## Delete Parse Job

`client.Parsing.Delete(ctx, jobID, body) (*ParsingDeleteResponse, error)`

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

- `jobID string`

- `body ParsingDeleteParams`

  - `OrganizationID param.Field[string]`

  - `ProjectID param.Field[string]`

### Returns

- `type ParsingDeleteResponse struct{…}`

  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 string`

    Identifier of the deleted parse job

  - `ProjectID string`

    Project the deleted job belonged to

### Example

```go
package main

import (
  "context"
  "fmt"

  "github.com/run-llama/llama-parse-go"
  "github.com/run-llama/llama-parse-go/option"
)

func main() {
  client := llamacloud.NewClient(
    option.WithAPIKey("My API Key"),
  )
  parsing, err := client.Parsing.Delete(
    context.TODO(),
    "job_id",
    llamacloud.ParsingDeleteParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", parsing.ID)
}
```

#### Response

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