---
title: "Remove InboxKit and its imported mailboxes"
method: POST
path: "/mailboxes/inboxkit/remove-everything/"
tags: ["senders"]
---

# Remove InboxKit and its imported mailboxes

`POST /mailboxes/inboxkit/remove-everything/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/mailboxes/inboxkit/remove-everything/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

The full-removal path: delegation records and the connection go; the imported mailboxes are disconnected or deleted per the request.

## Request body

- InboxkitRemoveEverythingSchema
  - `mailbox_action` 'disconnect' | 'delete', required: What removing the InboxKit connection does to its imported mailboxes. DISCONNECT keeps the mailbox rows and their history; DELETE removes them outright (cascading their inbox threads and messages).

## Response `200`

Successful Response

- InboxkitRemovalResultReadSchema
  - `mailboxes_deleted` integer, required
  - `mailboxes_disconnected` integer, required
  - `mailboxes_missing` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found.
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
