> This page is for version v1.3 (default).
> For other versions, use one of these documentation indexes:
> - v1.3 (default): https://docs.virtuosis.ai/v-1-3/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.virtuosis.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.virtuosis.ai/_mcp/server.

# Delete an account

DELETE https://api.virtuosis.ai/v1.3/accounts/{account_id}

Deletes one of your organisation's `participant` or `user` accounts, whether
it was created through the API or the web app. Other roles cannot be deleted
through the API. Deleting uses the same permission as creating accounts. If
your organisation does not have it, the request is refused with
AccountCreationNotEnabled.

An account in another organisation is reported as not found. It is safe to
retry after a 5xx. If a retry returns AccountNotFound, treat it as success,
because the earlier attempt already deleted the account.


Reference: https://docs.virtuosis.ai/api-reference/accounts/delete-account

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `account_id` (string, required) — The ID of the account.

## Response

### 204

Account deleted

## Errors

### 401 Unauthorized Error

Unauthorized. Returned when the API key is missing or invalid, or when an upload's `account_id` is not in your organisation or has been deleted. Also returned when the account a requested recording belongs to is in another organisation. Organisations that are not on the v1.3 prepaid model (no prepaid API keys or credits) receive 401 from every v1.3 endpoint except `/ping`, even with a valid key.

- `error` (ErrorError, required) — Error details.

### 403 Forbidden Error

Access is suspended, deleting accounts is not enabled for your organisation, or the account is not a `participant` or `user`.

- `error` (ErrorError, required) — Error details.

### 404 Not Found Error

Account not found

- `error` (ErrorError, required) — Error details.

### 429 Too Many Requests Error

Rate limit exceeded

- `error` (ErrorError, required) — Error details.

### 500 Internal Server Error

Internal server error

- `error` (ErrorError, required) — Error details.

### 503 Service Unavailable Error

Your API key could not be checked right now. The request was not processed; retry it later.

- `error` (ErrorError, required) — Error details.

## Types

### ErrorError

Error details.

- `type` (string, required) — Machine-readable error type.
- `message` (string, required) — Human-readable description of the error.

## Examples

**SDK Code**

```python
import requests

url = "https://api.virtuosis.ai/v1.3/accounts/account_id"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.virtuosis.ai/v1.3/accounts/account_id';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.virtuosis.ai/v1.3/accounts/account_id"

	req, _ := http.NewRequest("DELETE", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.virtuosis.ai/v1.3/accounts/account_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.delete("https://api.virtuosis.ai/v1.3/accounts/account_id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'https://api.virtuosis.ai/v1.3/accounts/account_id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.virtuosis.ai/v1.3/accounts/account_id");
var request = new RestRequest(Method.DELETE);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.virtuosis.ai/v1.3/accounts/account_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```