---
title: "Delete a connected account"
method: DELETE
path: "/api/v3/connected_accounts/{nanoid}"
tags: ["Connected Accounts", "Account Management"]
---

# Delete a connected account

`DELETE /api/v3/connected_accounts/{nanoid}`

Soft-deletes a connected account by marking it as deleted in the database. This prevents the account from being used for API calls but preserves the record for audit purposes. Pass `?revoke_on_delete=true` to also revoke the account's upstream credentials via a background job.

## Path parameters

- `nanoid` string, connectedAccountId, required

## Query parameters

- `revoke_on_delete` boolean, nullable — When `true`, the delete also starts a background job that revokes the upstream credentials of every connected account in scope, and the response carries a `revoke_job_id`. Defaults to `false`. Revocation is irreversible — recovering a deleted entity does not restore working credentials.

## Response `200`

Successfully deleted the connected account. The account is marked as deleted but retained in the database for historical purposes.

- object — Response returned after successfully deleting a connected account
  - `success` boolean, required — Indicates whether the connected account was successfully deleted
  - `revoke_job_id` string — Identifier of the background revoke job started for this delete. Present only when `revoke_on_delete=true`. Track the job and its per-connection results from the Composio dashboard — a programmatic endpoint to poll this job is not yet generally available.

## Other responses

- `400` — Bad request - Invalid nanoid format or other validation error
- `401` — Unauthorized - Authentication failed
- `403` — Forbidden - Insufficient permissions to delete this connected account
- `404` — Connected account not found - The specified account does not exist or has already been deleted
- `500` — Internal server error - Failed to delete the connected account due to a server-side issue

---

[API](https://skmtc.net/composiohq/apis/composio-platform-api.md) · [All operations](https://skmtc.net/composiohq/apis/composio-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/composiohq/composio-platform-api/versions/df7478fc8f3b/schema)
