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

# Delete a task

> Delete a task and its messages.

The task becomes inaccessible immediately. Files the agent produced belong to the project and are not deleted.


## OpenAPI

````yaml api-reference/openapi.json DELETE /experimental/tasks/{task_id}
openapi: 3.1.0
info:
  title: Phylo API — V1
  description: Public API for Phylo, the biomedical AI agent platform.
  version: 0.1.0
servers:
  - url: https://api.phylo.bio/v1
    description: >-
      Self-serve platform. Enterprise customers should contact the Phylo team to
      get their API base URL. Learn more at https://phylo.bio/enterprise.
security: []
paths:
  /experimental/tasks/{task_id}:
    delete:
      tags:
        - tasks
      summary: Delete a task
      description: Delete a task and its messages.
      operationId: delete_task_experimental_tasks__task_id__delete
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            title: Task Id
      responses:
        '200':
          description: Confirmation that the task was deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskDeleted'
              example:
                type: task_deleted
                id: tsk_014MUnN99MEVcklVXXfFbxXb
      security:
        - bearerAuth: []
components:
  schemas:
    TaskDeleted:
      properties:
        type:
          type: string
          const: task_deleted
          title: Type
          default: task_deleted
        id:
          type: string
          title: Id
      type: object
      required:
        - id
      title: TaskDeleted
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Requires an API key. See the Authentication guide.

````