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

# Delete a task

> Soft-deletes a task (sets `deletedAt`). Deleted tasks disappear from all list and query endpoints. Requires the `member` role or higher; workspace-level API keys satisfy this.



## OpenAPI

````yaml DELETE /task/{id}
openapi: 3.0.1
info:
  title: Tela API
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.tela.com
security: []
paths:
  /task/{id}:
    delete:
      tags:
        - Task
      summary: Delete a task
      description: >-
        Soft-deletes a task (sets `deletedAt`). Deleted tasks disappear from all
        list and query endpoints. Requires the `member` role or higher;
        workspace-level API keys satisfy this.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Task deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskDeleteResponse'
              example:
                success: true
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The caller's role is below `member`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Task not found or already deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    TaskDeleteResponse:
      type: object
      properties:
        success:
          type: boolean
      required:
        - success
    Error: {}
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or UUID

````

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