# Delete agent label

```http
DELETE /projects/{project_reference}/agents/{agent_id}/labels/{label_id}
```

Delete agent label. Requires project.agents.write; API keys also need delete scope.

## Parameters

| Name                 | In    | Required | Description                              |
| -------------------- | ----- | -------- | ---------------------------------------- |
| `project_reference`  | path  | Yes      | Project UUID or slug.                    |
| `agent_id`           | path  | Yes      |                                          |
| `label_id`           | path  | Yes      | Label UUID within the selected resource. |
| `source_target_kind` | query |          |                                          |
| `target_branch_id`   | query |          |                                          |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 200    | Label soft-deleted.                                                                                         |
| 400    | Bad request                                                                                                 |
| 401    | Unauthorized                                                                                                |
| 403    | Requires project.agents.write; API keys also require delete scope. API keys also require delete scope.      |
| 404    | Not found                                                                                                   |
| 409    | Conflict                                                                                                    |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
