`DELETE /v1/orgs/{org}`: delete the organization (DAWG-170).
const url = 'https://api.updawg.net/v1/orgs/example';const options = { method: 'DELETE', headers: {'Content-Type': 'application/json'}, body: '{"confirm":"example"}'};
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.updawg.net/v1/orgs/example \ --header 'Content-Type: application/json' \ --data '{ "confirm": "example" }'Gone for everybody at once: its members lose it, its API, enrollment and SCIM tokens stop working and its hosts’ check-ins are refused. Everything that was its own is purged a week later by the nightly maintenance run. The owner’s alone, in person, never with an API token; refused while Stripe is still billing it.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization slug.
Request Bodyrequired
Section titled “Request Bodyrequired”object
The organization’s slug, exactly as it is now: a thing typed on purpose rather than a click somebody could make by accident.
Example generated
{ "confirm": "example"}Responses
Section titled “Responses”Deleted. Its data is purged in seven days.
confirm is not this organization’s slug.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No session.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Not the owner, or an API token: only an owner, signed in, can.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such organization, or not yours — one answer for both.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}subscription-active: a paid subscription is still being billed. Cancel it in billing first.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}The organization’s data is in another region (wrong-region, DAWG-159). detail names that region’s API; send the request there.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}