Skip to content
Connect an agent
Organisations

Delete an organisation

Removes every diagram file from the private bucket, then the rows.

DELETE/orgs/{org}

TL;DR

QuestionAnswer
What does it do?Delete an organisation.
What does it take?org in the path.
What does it return?Status 204 with no body.
What can go wrong?401 not signed in; 403 only the owner may delete (orgs.forbidden), or the request came from an origin that may not make changes; 404 no such organisation, or the caller is not a member of it; 429 too many requests; 502 a file could not be removed; try again; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

Removes every diagram file from the private bucket, then the rows. Only the owner may. If a file cannot be removed the organisation stays and the owner can try again.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
204Deleted.none
401Not signed in.ErrorResponse
403Only the owner may delete (orgs.forbidden), or the request came from an origin that may not make changes.ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
502A file could not be removed; try again.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools