Skip to main content

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.

  • 400 without cascade while the project still holds cloud resources, other than the defaults OpenStack creates in every project. now=true always removes them.
  • 400 when the project is already scheduled for deletion or being deleted. now=true is still accepted, and starts a scheduled deletion at once.
  • 409 PROJECT_DELETION_BLOCKED when 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.check lists what it found, per cloud and per resource.
  • 404 for an unknown project.

Request​

Responses​

OK