> ## 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 Campaign

> Permanently delete an existing campaign. Only campaigns belonging to the user's organization can be deleted.

### 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 Campaign Id to delete for (e.g., `camp_abc123`).</ParamField>

### Response

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

<ResponseField name="message" type="string">
  A message confirming the action or describing the error.
</ResponseField>

<ResponseField name="error" type="string">
  The error type or code (Error responses only).
</ResponseField>

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

  ```

  ```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": "Access denied - Campaign belongs to another organization"
  }

  ```

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

  ```

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

  ```
</ResponseExample>
