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

# Permanently delete an archived task

> Permanently deletes a task. The task must be archived first (POST /{taskId}/archive). This cannot be undone.



## OpenAPI

````yaml https://znift.com/api/v1/openapi.json delete /api/v1/tasks/{taskId}
openapi: 3.1.0
info:
  title: Znift Tasks API
  version: 1.0.0
  description: >-
    Public REST API for managing Znift tasks. Designed for AI agents, CLI tools,
    and automation. Authenticate with an API key via the x-api-key header.
servers:
  - url: https://znift.com
    description: Znift Production API
security:
  - apiKey: []
paths:
  /api/v1/tasks/{taskId}:
    delete:
      summary: Permanently delete an archived task
      description: >-
        Permanently deletes a task. The task must be archived first (POST
        /{taskId}/archive). This cannot be undone.
      operationId: deleteTask
      parameters:
        - name: taskId
          in: path
          required: true
          schema:
            type: string
          description: Task ID
      responses:
        '200':
          description: Task deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Success'
        '400':
          description: Task is not archived
        '404':
          description: Task not found
components:
  schemas:
    Success:
      type: object
      properties:
        success:
          type: boolean
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API key with znift_ prefix. Create one in Profile > API Keys.

````