
# Delete Contract

```
DELETE /api/v1/conformance-contracts/:id
```

Deletes the contract and the conformance state it produced. The enforcement log is kept.

CLI: [`fob-mdm contracts delete`](/docs/cli/contracts#contracts-delete)

## Path Parameters

| Parameter | Type | Description |
|---|---|---|
| `id` | number | Contract id |

## Example Request

```bash
curl -X DELETE "https://mdm.finopsbricks.com/api/v1/conformance-contracts/3" \
  -H "api-key: $MDM_API_KEY" \
  -H "api-secret: $MDM_API_SECRET"
```

## Response

`204 No Content` with no body.

## Errors

| Status | Code | When |
|---|---|---|
| 401 | `UNAUTHORIZED` | Missing, wrong or expired API credentials |
| 403 | `FORBIDDEN` | The key lacks `conformance:delete` permission |
| 404 | `NOT_FOUND` | No such contract in your organization |

See [Errors](/docs/api/errors) for the envelope.
