# DELETE /api/v1/workspaces/:id/inboxes/:inboxId

Auth: Bearer

HTML: https://cooperemail.com/docs/reference/workspaces-inbox-delete

## Summary

Delete one inbox on this sub-account. inboxId accepts an inbox id, username, or email on that workspace. Frees the plan slot and the workspace inbox quota. An inbox on another account or workspace returns 404 inbox_not_found. Another parent's workspace returns 404 workspace_not_found. A sub-account key returns 403 permission_denied.

## Request

This call has no JSON body.

## Response

The OpenAPI document does not declare a JSON response schema for this call. The summary is the contract.

## Errors

- HTTP 404 inbox_not_found
- HTTP 404 workspace_not_found
- HTTP 403 permission_denied

The live `message` is the sentence for that code. Branch on `code`.

```json
{
  "error": {
    "type": "not_found",
    "code": "inbox_not_found",
    "docs_url": "https://cooperemail.com/docs#inbox_not_found"
  }
}
```

## Idempotency

This route does not document Idempotency-Key or client_id.
