Skip to content

Delete Organization

DELETE
/organizations/{slug}
curl --request DELETE \
--url 'https://api.mengi.cloud/organizations/example?force=false'

Delete an organization (owner only).

Refuses while the organization still owns clusters, deployments, databases or secrets, and while it has an unpaid balance or a payment being collected (platform admins can pass ?force=true to write the balance off). Its cloud and DNS credentials are deleted with it, secrets included.

slug
required
Slug
string
force
Force

Platform admins only: delete despite a billing hold (the unpaid balance is written off)

boolean

Platform admins only: delete despite a billing hold (the unpaid balance is written off)

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}