---
title: "Permanently delete an archived company"
method: POST
path: "/organizations/{id}/purge"
tags: ["Organizations"]
---

# Permanently delete an archived company

`POST /organizations/{id}/purge`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/organizations/{id}/purge`
- Auth: HTTP bearer and API key in header `x-organization-id`

Irreversible. Company must already be archived (deletedAt set). Disconnects Plaid Items, best-effort deletes known file objects, then hard-deletes the organization row (cascade). Body must include confirmName matching the company name exactly. Requires organizations:write and delete:organization with x-organization-id of the firm.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `confirmName` string, required: Must match the company name exactly
  - `reason` string

## Response `200`

Company permanently deleted

- object
  - `purged` boolean
  - `organizationId` string, uuid
  - `name` string
  - `disconnectedFeeds` integer
  - `objectsDeleted` integer

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
