Delete your app
With AWS Amplify, you can delete your app at any time. Anyone with share access can delete an app. Amplify doesn’t delete your integrated resources. If your app has a backend, Amplify also deletes its backends and all their data.
After you delete an app, you can’t recover it or its backend data. Before you delete it, export any data that you want to keep, such as with aws amplifygen3 db dump.
If your app has a backend, deleting the app also deletes each environment’s backend and database, with all of their data.
Deleting the app also deletes each branch’s automated backups and sign-in users, and no final snapshot is kept. aws amplifygen3 db dump saves your tables but not your users. For information about removing only the backend, see Add or remove a backend.
Deleting the app keeps its log groups under /aws/amplifygen3/<app-name>/. The deletion finishes in the background and can take a few minutes.
Delete an app using the Amplify console:
-
Sign in to the Amplify console.
-
Choose an app.
-
In the left navigation pane, choose Settings.
-
For Delete app, choose Delete app.
-
Confirm your choice and choose Delete.
Delete an app using the CLI:
The following command deletes the app and its environments, deployments, and backends with all their data. Before you run it, export any data that you want to keep, such as with aws amplifygen3 db dump. You can’t undo this action.
The command doesn’t delete integrations. To remove an integration, run aws amplifygen3 integration delete --name integration-name, and replace integration-name with the name of the integration.
The following command deletes an app. Replace my-app with the name of your app.
aws amplifygen3 app delete --app my-app --yes
The command asks for confirmation before it deletes the app. --yes skips the prompt, and it’s required in a session without a prompt, such as CI.