App Platform is a Platform-as-a-Service (PaaS) offering that allows developers to publish code directly to DigitalOcean servers without worrying about the underlying infrastructure.
Deleting an app permanently and irreversibly destroys the app and its components.
The destroy app CLI command and API endpoint require the app’s ID. You can retrieve a list of your apps and their IDs using the
doctl apps list command or the
/v2/apps endpoint endpoint.
To destroy an app via the command-line, follow these steps:
doctl, the DigitalOcean command-line tool.
personal access token, and save it for use with
Use the token to grant
doctl access to your
doctl auth init
Finally, destroy an app with
doctl apps delete. The basic usage looks
like this, but you'll want to read the usage docs for more details:
doctl apps delete <app id> [flags]
To destroy an app using the DigitalOcean API, follow these steps:
Create a personal access token, and save it for use with the API.
Send a DELETE request to
To destroy an app with cURL, call:
curl -X DELETE \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
delete_resp = client.apps.delete(id="b7d64052")
To destroy an app from the DigitalOcean Control Panel, click Apps from the left menu and the click on the app you want to destroy.
From the app’s overview page, click the Settings tab. Scroll down to the Destroy section and then click the Destroy button. In the Destroy app and associated components window, enter the app’s name into the field to confirm that you want to destroy the app and then click Destroy. The app is deleted from your account.