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

# Delete a proactive task

> Deletes a task with its record of what it did. Deleting a default task (`source: system`) is how you opt out of it: nothing puts it back.



## OpenAPI

````yaml /api/statisfy-api.openapi.json delete /v1/digital_workers/{worker_id}/tasks/{task_id}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/digital_workers/{worker_id}/tasks/{task_id}:
    delete:
      tags:
        - digital_workers
      summary: Delete a proactive task
      description: >-
        Deletes a task with its record of what it did. Deleting a default task
        (`source: system`) is how you opt out of it: nothing puts it back.
      operationId: digital_workers_delete_task
      parameters:
        - description: The worker's id, from GET /v1/digital_workers
          in: path
          name: worker_id
          required: true
          schema:
            type: string
        - description: The task's id, from GET /v1/digital_workers/{worker_id}/tasks
          in: path
          name: task_id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletedTask'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    DeletedTask:
      properties:
        deleted:
          const: true
          default: true
          title: Deleted
          type: boolean
        id:
          title: Id
          type: string
      required:
        - id
      title: DeletedTask
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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