curl \
-X DELETE 'https://api.meilisearch.com/api/v2/organizations/1' \
-H 'Authorization: Bearer MANAGEMENT_API_TOKEN'{
"message": "The provided token is invalid.",
"code": "invalid_token",
"type": "auth",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#invalid_token"
}{
"message": "You are not allowed to perform this action.",
"code": "forbidden",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#forbidden"
}{
"message": "Organization not found.",
"code": "organization_not_found",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#organization_not_found"
}{
"message": "The organization still has active projects.",
"code": "organization_deletion_has_project",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#organization_deletion_has_project"
}Organizations
Delete organization
Deletes an organization and its teams. Only the organization owner can delete it, once the organization has no active project.
DELETE
/
api
/
v2
/
organizations
/
{id}
curl \
-X DELETE 'https://api.meilisearch.com/api/v2/organizations/1' \
-H 'Authorization: Bearer MANAGEMENT_API_TOKEN'{
"message": "The provided token is invalid.",
"code": "invalid_token",
"type": "auth",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#invalid_token"
}{
"message": "You are not allowed to perform this action.",
"code": "forbidden",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#forbidden"
}{
"message": "Organization not found.",
"code": "organization_not_found",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#organization_not_found"
}{
"message": "The organization still has active projects.",
"code": "organization_deletion_has_project",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#organization_deletion_has_project"
}Authorizations
personal_access_tokenoauth2
Send Authorization: Bearer <token>, where <token> is a personal access token (PAT) or an OAuth2 access token. A PAT authenticates as the user who owns it. See Authentication.
Response
Organization deleted