Delete Project
DELETE/admin_api/v1/projects/:id
Deletes the project. OSIE removes the cloud resources it knows of in the project, on every cloud the project lives on, then deletes the cloud project itself from keystone once the cloud reports it empty. A cloud project that still holds something — a resource OpenStack refused to remove, or one created outside OSIE — stays in keystone tagged osie:deleted, and an hourly job deletes it once it is empty. The OSIE project is removed either way.
When it runs. By default the deletion is scheduled: it starts 5 to 6 minutes later, and can be cancelled from the admin console until then. With now=true it starts at once. OSIE waits at most about 15 minutes for the resources to go.
Following it. The response is the project in its new status, SCHEDULED_FOR_DELETION or DELETE_IN_PROGRESS. Poll GET /projects/{id}: a 404 means the deletion has finished. If the project turns DISABLED instead, the deletion stopped short, and the admin console shows why. Send DELETE again to retry; if the attempt that stopped began less than 20 minutes earlier, the retry waits until those 20 minutes are up.
Refusals.
400withoutcascadewhile the project still holds cloud resources, other than the defaults OpenStack creates in every project.now=truealways removes them.400when the project is already scheduled for deletion or being deleted.now=trueis still accepted, and starts a scheduled deletion at once.409PROJECT_DELETION_BLOCKEDwhen the pre-deletion check finds something that would stop the deletion, such as a protected image or a cloud project OSIE cannot sign in to.details.checklists what it found, per cloud and per resource.404for an unknown project.
Request
Responses
- 200
OK