Skip to Content
Pouch
Admin organizations

Delete an organization

DELETE
/v1/admin/organizations/{id}

Auth: Admin key.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

Response Body

Confirms the delete and counts what went with it. Takes the organization's domains, keys, people, lists and send history with it. Shared providers and admin keys belong to the service and are untouched. Refused while it has mail waiting to send or holds the domain the service sends its own mail from. A provider that can't release a domain stops the delete part way; call it again to resume.

application/json
  1. response
id?string

The deleted organization's id.

deleted?boolean

Always true.

domains?integer

Domains deleted, at the provider as well as here.

messages?integer

Messages and their events deleted with it.

Example Request
curl -X DELETE 'https://pouch.example.com/v1/admin/organizations/string'
Example Response
{  "id": "string",  "deleted": true,  "domains": 0,  "messages": 0}