
# Supprimer une affectation d'application

`DELETE /v1/organizations/{org_id}/applications/{application_id}/assignments/{assignment_id}` · permission `organizations:write`

Supprime l'affectation. La suppression est consignée dans le journal d'audit de gestion sous `application_assignment.deleted`.

## Requête

| Champ | Type | Obligatoire | Description |
|---|---|---|---|
| `org_id` | path | oui | Identifiant de l'organisation (`org_…`). |
| `application_id` | path | oui | Identifiant de l'application (`app_…`). |
| `assignment_id` | path | oui | Identifiant de l'affectation (`aas_…`). |

Aucun corps de requête.

## Réponse

`204 No Content`.

## Erreurs

| HTTP | code | Quand |
|---|---|---|
| 404 | `not_found` | Aucune affectation avec cet identifiant n'existe pour cette organisation et cette application. |
| 401 | `unauthenticated` | L'identifiant est absent, invalide ou révoqué. |
| 403 | `insufficient_permissions` | L'identifiant ne dispose pas de la permission requise. |
| 429 | `rate_limited` | La limite de débit a été dépassée ; réessayez après la période `Retry-After`. |
| 503 | `service_unavailable` | Une dépendance est temporairement indisponible ; réessayez après la période `Retry-After`. |

## Exemple

```bash
curl -i -X DELETE "https://api.eu.keenauth.com/v1/organizations/org_01j9xk3m7q8r2s4t6v8w0y2z4a/applications/app_01j9xm4n8r9s3t5v7w9x1y3z5b/assignments/aas_01j9xq6r0t1v5w7x9y1z3a5b7d" \
  -H "Authorization: Bearer $KEENAUTH_SECRET_KEY"
```
