> ## Documentation Index
> Fetch the complete documentation index at: https://docs.infinipost.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Account

> Permanently delete an account

## Path Parameters

<ParamField path="accountId" type="string" required>
  The unique account identifier.
</ParamField>

## Response

<ResponseField name="accountId" type="string">
  The deleted account's identifier.
</ResponseField>

<ResponseField name="deleted" type="boolean">
  Always `true` if deletion was successful.
</ResponseField>

<ResponseField name="deletedAt" type="string">
  ISO 8601 timestamp of deletion.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e', {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY'
    }
  });

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.delete(
      'https://api.infinipost.co/v1/accounts/acc_1a2b3c4d5e',
      headers={'Authorization': 'Bearer YOUR_API_KEY'}
  )

  print(response.json())
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "accountId": "acc_1a2b3c4d5e",
    "deleted": true,
    "deletedAt": "2024-04-21T19:50:00Z"
  }
  ```
</ResponseExample>

<Warning>
  **This action is permanent!** Deleted accounts cannot be recovered. All associated data, posts, and analytics will be permanently removed.
</Warning>

## Error Responses

```json Unauthorized theme={null}
{
  "error": {
    "code": "unauthenticated",
    "message": "Invalid or missing API key"
  }
}
```

```json Account Not Found theme={null}
{
  "error": {
    "code": "not_found",
    "message": "Account acc_1a2b3c4d5e not found"
  }
}
```

```json Server Error theme={null}
{
  "error": {
    "code": "internal",
    "message": "An unexpected error occurred"
  }
}
```
