---
title: "Delete Account"
method: DELETE
path: "/api/v1/accounts/{account_id}"
tags: ["accounts"]
---

# Delete Account

`DELETE /api/v1/accounts/{account_id}`

## Request

- Base URL: `https://api.nudgelink.co` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nudgelink.co/api/v1/accounts/{account_id}`
- Auth: HTTP bearer

2026-06-12 (#43): remove a connected LinkedIn account.

Order of operations (safety-first):
  1. Ownership check — 404 for anyone else's account (no existence leak).
  2. Pause every non-terminal sequence routed through this account, with
     an explicit pause_reason so the leads page explains itself. The FK is
     ``SET NULL`` on delete, so without this step live sequences would
     silently lose their sending seat and stall with no explanation.
  3. Best-effort disconnect of the seat at Unipile (so the LinkedIn
     session is actually severed, not just hidden from our UI). A
     provider failure does NOT block the local delete — the user asked
     for the account to be gone; we log and continue.
  4. Delete the row.

## Path parameters

- `account_id` string, uuid, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/nudgelink/apis/nudgelink-api.md) · [All operations](https://skmtc.dev/nudgelink/apis/nudgelink-api/llms.txt) · [OpenAPI document](https://skmtc.dev/nudgelink/apis/nudgelink-api/revisions/baa46e6db986?raw)
