---
title: "Detach Cluster from App"
method: DELETE
path: "/postgres/{postgres_cluster_id}/attachments/{app_name}"
tags: ["Postgres Clusters"]
---

# Detach Cluster from App

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

Detach a specific cluster from a Fly app.

## Path parameters

- `postgres_cluster_id` string, required
- `app_name` string, required

## Response `204`

No Content

## Other responses

- `404` — 'Cluster not found' for the cluster; 'App not found' for the app; 'Attachment not found' for the attachment
- `410` — 'This cluster has been deleted' or 'This cluster is being deleted'

---

[API](https://skmtc.net/machines/apis/machines-api.md) · [All operations](https://skmtc.net/machines/apis/machines-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/machines/machines-api/versions/633ddedda749/schema)
