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

# Delete Disposition

> Delete a disposition

## Overview

Permanently delete a disposition from your organization.

<Warning>
  **Cannot delete dispositions in use**

  You cannot delete a disposition that is currently assigned to any disposition group. Remove the disposition from all groups first before deleting.
</Warning>

## Headers

<ParamField header="Authorization" type="string" required>
  Bearer token for authentication (e.g., `Bearer <your_token>`).
</ParamField>

## Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the disposition to delete
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Indicates if the request was successful
</ResponseField>

<ResponseField name="message" type="string">
  Response message
</ResponseField>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "success": true,
    "message": "Disposition deleted successfully"
  }
  ```

  ```json 400 In Use theme={null}
  {
    "success": false,
    "message": "Cannot delete: Disposition is used in group(s): Call Back, Follow Up"
  }
  ```

  ```json 403 Forbidden theme={null}
  {
    "success": false,
    "message": "Access denied"
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "success": false,
    "message": "Disposition not found"
  }
  ```

  ```json 401 Unauthorized theme={null}
  {
    "success": false,
    "error": "Unauthorized",
    "message": "Missing or invalid authorization header"
  }
  ```

  ```json 403 Forbidden theme={null}
  {
    "success": false,
    "error": "Forbidden",
    "message": "You don't have the required permission to perform this action"
  }
  ```

  ```json 500 Server Error theme={null}
  {
    "success": false,
    "error": "InternalServerError",
    "message": "An unexpected error occurred"
  }
  ```
</ResponseExample>

## Error Codes

| Status | Description                                               |
| ------ | --------------------------------------------------------- |
| `400`  | Cannot delete - disposition is used in one or more groups |
| `401`  | Unauthorized - Invalid or missing API key                 |
| `403`  | Forbidden - Missing required permissions                  |
| `404`  | Disposition not found                                     |
| `500`  | Internal server error                                     |
