# Detach Cluster from App (/postgres-clusters/Postgres_attachments_delete)

Detach a specific cluster from a Fly app.

`DELETE /v1/postgres/{postgres_cluster_id}/attachments/{app_name}`

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `postgres_cluster_id` | path | `string` | Yes | Managed Postgres Cluster ID |
| `app_name` | path | `string` | Yes | Fly App Name |

## Responses

| Status | Description | Schema |
| --- | --- | --- |
| `204` | No Content |  |
| `404` | 'Cluster not found' for the cluster; 'App not found' for the app; 'Attachment not found' for the attachment | `PostgresErrorResponse` |
| `410` | 'This cluster has been deleted' or 'This cluster is being deleted' | `PostgresErrorResponse` |

The full machine-readable OpenAPI spec is available at /openapi.json.