> ## 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 Workflow Template

> Permanently delete a workflow template.

### Headers

**Authorization** `string` *required*

Bearer token for authentication (e.g., `Bearer <your_token>`).

**X-ORG-ID** `string`

Optional. Use this header only when the authenticated user belongs to multiple organizations. It identifies the organization to target for this action.

### Path Parameters

**id** `string` *required*

The workflow template ID to delete (e.g., `nGOdgleMaAOegqYzyQZc`).

### Response

**success** `boolean`

Indicates whether the deletion was successful.

**message** `string`

A message confirming the action or describing the error.

**data** `object`

The deleted workflow template.

**properties**

**id** `string`

The ID of the deleted workflow template.

**error** `string`

The error type or code (error responses only).

```json 200 OK theme={null}
{
  "success": true,
  "message": "Workflow template deleted successfully.",
  "data": {
    "id": "nGOdgleMaAOegqYzyQZc"
  }
}
```

```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 404 Not Found theme={null}
{
  "success": false,
  "message": "Workflow template not found."
}
```

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

## Error Codes

| Status | Description |
| - | - |
| `401` | Unauthorized - missing or invalid authorization header |
| `403` | Forbidden - insufficient permission to delete the workflow template |
| `404` | Workflow template not found |
| `500` | Internal server error |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.