Docs/CLI Commands
Feature guide4 of 4 in section

Destroy

What `shipper destroy` removes, how destroy intent should be reviewed, and where cleanup boundaries come from.

Destroy

shipper destroy tears down the resources associated with a project profile.

Example

php shipper destroy --project api --profile preview

Typical Use Cases

  • PR preview cleanup
  • teardown of temporary staging environments
  • explicit removal of managed resources

Review Before Running

  • Plan the selected environment first
  • confirm whether server cleanup is destroy, retain, or manual
  • confirm whether preview databases and sites are uniquely scoped to the target environment

Related Pages

Failure Modes

  • destroying a long-lived environment by selecting the wrong profile
  • assuming unmanaged resources are safe to remove
  • skipping plan before a destructive workflow