# deleteProjectLabel

```graphql
mutation DeleteProjectLabel($input: DeleteProjectLabelInput!) {
  deleteProjectLabel(input: $input) {
    ok
  }
}
```

Delete project label. Requires project.settings.manage; API keys also need delete scope.

## Arguments

| Name                     | Type                     | Required | Description                                                                                                |
| ------------------------ | ------------------------ | -------- | ---------------------------------------------------------------------------------------------------------- |
| `input`                  | DeleteProjectLabelInput! | Yes      |                                                                                                            |
| `input.projectReference` | String!                  | Yes      | Project UUID or slug.                                                                                      |
| `input.labelId`          | ID!                      | Yes      | Active label to soft-delete in the selected project. A missing or already deleted label returns not found. |

## Variables

```json
{
  "input": {
    "projectReference": "string",
    "labelId": "string"
  }
}
```

## Responses

| Status | Description                                                |
| ------ | ---------------------------------------------------------- |
| 200    | The DeleteProjectLabelPayload! in data.deleteProjectLabel. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation DeleteProjectLabel($input: DeleteProjectLabelInput!) {\n  deleteProjectLabel(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {
      "projectReference": "string",
      "labelId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "deleteProjectLabel": {
      "ok": false
    }
  }
}
```
