All error codes

project_not_empty

HTTP 409 The project still holds resources

What happened

A project is deleted only when it is empty: no servers or routers, no public IP addresses, no private networks besides the default one, no ISO images and no server images of your own. The detail names what is still there and how many, and blockers in the body gives the same counts by kind: servers, ips, networks, isos and server_images, each present, 0 where nothing is left. Backups of servers you have already deleted do not hold the project.

What to do

Delete what the detail lists - each has its own DELETE in this reference - and repeat the same request.

Retrying

Change the state this refers to, then repeat the same request with the same idempotency key.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/project_not_empty",
    "title": "The project still holds resources",
    "status": 409,
    "code": "project_not_empty",
    "request_id": "a277dcd1ca652c65"
}

Branch your code on code, never on the wording of title.