Skip to content

`DELETE /v1/orgs/{org}`: delete the organization (DAWG-170).

DELETE
/v1/orgs/{org}
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.

org
required
string

Organization slug.

Media typeapplication/json
object
confirm
required

The organization’s slug, exactly as it is now: a thing typed on purpose rather than a click somebody could make by accident.

string

Example generated

{
"confirm": "example"
}

Deleted. Its data is purged in seven days.

confirm is not this organization’s slug.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

Example generated

{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

No session.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

Example generated

{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Not the owner, or an API token: only an owner, signed in, can.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

Example generated

{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

No such organization, or not yours — one answer for both.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

Example generated

{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

subscription-active: a paid subscription is still being billed. Cancel it in billing first.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

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.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

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.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string

Example generated

{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}