Delete Organization
DELETE
/organizations/{slug}
const url = 'https://api.mengi.cloud/organizations/example?force=false';const options = {method: 'DELETE'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
Slug
string
Query Parameters
Section titled “Query Parameters”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)
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}