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

# Delete Task

> Delete a task. Requires Manage Tasks for a task, or Manage Work Orders for a work order. This is not reversible - guard bulk scripts carefully.



## OpenAPI

````yaml DELETE /api/v1/ops/workspaces/{workspaceId}/tasks/{taskId}
openapi: 3.1.0
info:
  title: Xenia Team API - Delete Task
  version: 1.0.0
  description: Permanently deletes a task. Not reversible through the API.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/ops/workspaces/{workspaceId}/tasks/{taskId}:
    delete:
      tags:
        - Tasks
      summary: Delete Task
      description: >-
        Delete a task. Requires Manage Tasks for a task, or Manage Work Orders
        for a work order. This is not reversible - guard bulk scripts carefully.
      parameters:
        - name: workspaceId
          in: path
          required: true
          description: UUID of the workspace. Must be your key's own workspace.
          schema:
            type: string
            format: uuid
            example: cb363f7e-c52a-4478-911d-f6a6f791090e
        - name: taskId
          in: path
          required: true
          description: UUID of the task.
          schema:
            type: string
            format: uuid
            example: 232154c0-c239-48f8-b670-0e5d12fd64d0
      responses:
        '200':
          description: Task deleted.
        '400':
          description: Bad request - missing or invalid fields.
        '401':
          description: >-
            Unauthorized - invalid client credentials, or the key does not
            belong to this workspace.
        '403':
          description: >-
            Forbidden - API key not authorized for this route, or the key's user
            lacks the required permission.
        '404':
          description: Task not found.
        '500':
          description: Internal server error.
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````