Delete a project¶
This guide walks you through deleting a project using the CLI or the dashboard.
You need administrator access or the can_delete entitlement on the project.
The default project cannot be deleted.
Delete the project¶
A project must be empty before you delete it. If it contains instances, delete them first using Delete an instance or use force deletion to remove the project and its instances together.
If any instances have deletion protection enabled, see Disable instance deletion protection first.
Important
Force deletion permanently deletes the project, its instances and their data. This cannot be undone.
To delete an empty project, run:
amc project delete <project_name>
To delete the project and any instances it contains, run:
amc project delete <project_name> --force
Check that the project no longer appears in the list:
amc project list
Open the project selector and select Manage projects.
On the Projects page, click anywhere in the project’s row except the project name to open the Project details side panel. Clicking the project name opens the project’s Instances page.
In the side panel, select Delete.
If the project contains instances, select the Force delete checkbox.
Confirm the deletion.
Check that the project no longer appears on the Projects page.
Disable instance deletion protection¶
Instances with deletion protection enabled block deletion of their project, including force deletion.
Identify the protected instances and disable security.delete_protected only on those you intend to delete. Then retry the project deletion.
For instructions, see Configure an instance and AMS instance configuration.