Skip to main content
Destroying an infrastructure removes everything Inframan created for it, in the right order: your applications, add-ons and platform apps first, then every volume, then the cluster, the network and the Terraform state. Anything Inframan isn’t allowed to delete is handed back to you as a script, so nothing is left running or billing without you knowing.
This deletes every volume on the infrastructure, including the data in its PostgreSQL and Redis add-ons. It can’t be undone. Export anything you want to keep first.

Before you begin

  • The Admin role. Destroying is only possible in the console. A connected AI assistant can’t do it.
  • The infrastructure must have finished provisioning. You can’t destroy one that’s still provisioning or already being destroyed. Add-on installs that are still running are stopped first.

Destroy it

1

Open the danger zone

Open the infrastructure, select the Settings tab, and find Danger zone.
2

Confirm

Click Destroy, type the infrastructure’s name, and click Destroy infrastructure.
3

Wait for the teardown

The infrastructure shows Destroying while the teardown runs. On AWS it usually takes about 8 minutes. On Google Cloud it takes longer, mostly waiting for GKE to delete the cluster.
4

Delete what's handed back

If the infrastructure turns Action required, follow the next section. Otherwise it disappears from the list when it’s done.

What gets deleted

In this order:
  1. Your applications on the infrastructure.
  2. Add-ons, such as PostgreSQL and Redis.
  3. Platform apps, with the gateway last.
  4. Every persistent volume and its disk. Deleting a GKE cluster doesn’t delete its disks, so Inframan releases them first.
  5. The monitoring certificate authority kept in Secret Manager.
  6. The GKE cluster.
  7. The network.
  8. The bucket that held the infrastructure’s Terraform state.

When the infrastructure needs action

Some identities were created by a setup script you ran, such as the roles from the infrastructure’s one-time setup. Inframan doesn’t have the rights to delete those, by design. When any are left, the infrastructure turns Action required and shows a script that deletes them:
  • Google Cloud: service accounts named with the infrastructure’s short ID.
  • AWS: roles named inframan-<infra8>-*.
Run the script in Cloud Shell or AWS CloudShell, then click Continue. Inframan removes the infrastructure’s record. The cloud account’s own identities, the ones from Connect a cloud account, stay in place. They’re shared by every infrastructure in that account.

If the teardown fails

The infrastructure turns Deletion failed and shows the step that failed. Fix the cause if it’s on your side, such as a resource you added to the network by hand, then click Resume deletion to run the teardown again.