Validated on 17 Feb 2023 • Last edited on 2 Jul 2024
doctl | access token
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. If you need to re-deploy the app, you can download the app specification file before deleting the app and use the saved spec to build the app again.
Destroy an App Using Automation
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.
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
delete_resp = client.apps.delete(id="b7d64052")
Destroy an App Using the Control Panel
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.