
# Delete an application

`DELETE /v1/applications/{application_id}` · permission `applications:write`

Deletes an application together with its redirect URIs, API grants and connection list. `If-Match` is required: `428` without it, `412` with a stale version.

## Request

| Parameter | In | Description |
|---|---|---|
| `application_id` | path | Application id (`app_…`). |
| `If-Match` | header | The `ETag` of the version you read. |

## Response

`204 No Content`.

## Errors

| HTTP | `code` | When |
|---|---|---|
| 401 | `unauthenticated` | The key is missing, invalid or revoked. |
| 403 | `insufficient_permissions` | The key lacks the required permission. |
| 404 | `not_found` | The application does not exist in this environment. |
| 428 | `precondition_required` | `If-Match` header is missing. |
| 412 | `precondition_failed` | The version in `If-Match` is stale. |

## Example

```bash
curl -X DELETE https://api.eu.keenauth.com/v1/applications/app_6f8d0cjgbmf0gtn2rg6pscp3cg \
  -H "Authorization: Bearer $KEENAUTH_SECRET_KEY" \
  -H 'If-Match: "2"'
```
