---
title: "Delete a Postgres Cluster · Fly Docs"
description: "!https://fly.io/docs/postgres/managing/deleting/"
date: 2023-10-17
published: true
tags:
  - cloud
  - fly-io
  - infra
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://fly.io/docs/postgres/managing/deleting/" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://og-images.fly.dev/image?template=light&amp;text=Delete+a+Postgres+Cluster" alt="Delete a Postgres Cluster — Documentation and guides from the team at Fly.io." loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">Delete a Postgres Cluster</div>
      <div class="embed-card-description">Documentation and guides from the team at Fly.io.</div>
      <div class="embed-card-meta">Fly &middot; fly.io</div>
    </div>
  </a>
</div>


Deleting a fly postgres db cluster was not straightforward to me as the app name is not inferred from the toml like it is for the main app.


``` bash
fly apps destroy <pg-app-name>
fly pg db list -a <pg-app-name>
```
