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

# Cancel a bulk-action job

> Signal cancellation. Queued jobs flip to `cancelled` immediately; in-progress jobs flip when the worker observes the flag between chunks (typically within seconds). Terminal jobs return their existing final state — no error. Auth: the originating credential or an admin.



## OpenAPI

````yaml /openapi.json delete /items/bulk_action/jobs/{id}
openapi: 3.1.0
info:
  title: Marfa API
  version: 4.2.0
  description: Typed data layer for structured personal data
servers: []
security: []
paths:
  /items/bulk_action/jobs/{id}:
    delete:
      tags:
        - Items
      summary: Cancel a bulk-action job
      description: >-
        Signal cancellation. Queued jobs flip to `cancelled` immediately;
        in-progress jobs flip when the worker observes the flag between chunks
        (typically within seconds). Terminal jobs return their existing final
        state — no error. Auth: the originating credential or an admin.
      operationId: cancelABulkActionJob
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Job state after the cancel signal
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  action:
                    type: string
                  status:
                    type: string
                    enum:
                      - queued
                      - in_progress
                      - completed
                      - failed
                      - cancelled
                  matched:
                    type: integer
                  processed:
                    type: integer
                  succeeded:
                    type: integer
                  errored:
                    type: integer
                  started_at:
                    type: string
                  finished_at:
                    type: string
                  error:
                    type: string
                  result:
                    type: object
                    properties:
                      action:
                        type: string
                      matched:
                        type: integer
                      succeeded:
                        type: integer
                      errored:
                        type: integer
                      dry_run:
                        type: boolean
                      ids:
                        type: array
                        items:
                          type: string
                      errors:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            code:
                              type: string
                            message:
                              type: string
                          required:
                            - id
                            - code
                            - message
                      blob_hashes_referenced:
                        type: integer
                    required:
                      - action
                      - matched
                      - succeeded
                      - errored
                      - dry_run
                required:
                  - id
                  - action
                  - status
                  - matched
                  - processed
                  - succeeded
                  - errored
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - unauthorized
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
        '403':
          description: Not the originating credential and not an admin
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - forbidden
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
        '404':
          description: Job not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - bulk_job_not_found
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or OAuth Token
      description: Pass an API key (marfa_k1_...) or OAuth access token (marfa_at_...)

````