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

# Delete a finished procedure run

> Permanently deletes a finished run (completed, failed, cancelled, terminated or timed out) and the history Effective stores for it, such as its events. This cannot be undone. Only workspace administrators can delete runs, with their own session or an unscoped API key; scoped keys and app credentials are refused. The procedure, and the records and files the run produced, are kept, and actions the run took outside Effective are not undone. A run that other runs or records depend on cannot be deleted. Effective keeps a minimal audit of each deletion: the run ID, procedure, final status, who deleted it and when. Repeating a deletion is safe: deleted is false when the run is already absent.

Deprecated on 2026-11-19. It keeps working until at least 2027-03-01, then may be removed. Deleting procedure runs will no longer be offered through the API. To have a run deleted after that date, contact Effective support.



## OpenAPI

````yaml /openapi.json delete /procedure-runs/{runId}
openapi: 3.0.3
info:
  title: Effective API
  version: 2.0.0
  description: The public Effective REST API. Authenticate using an Effective API key.
servers:
  - url: https://api.effectiveai.app/api/v2
    description: Production
security:
  - bearerAuth: []
paths:
  /procedure-runs/{runId}:
    delete:
      tags:
        - Procedure runs
      summary: Delete a finished procedure run
      description: >-
        Permanently deletes a finished run (completed, failed, cancelled,
        terminated or timed out) and the history Effective stores for it, such
        as its events. This cannot be undone. Only workspace administrators can
        delete runs, with their own session or an unscoped API key; scoped keys
        and app credentials are refused. The procedure, and the records and
        files the run produced, are kept, and actions the run took outside
        Effective are not undone. A run that other runs or records depend on
        cannot be deleted. Effective keeps a minimal audit of each deletion: the
        run ID, procedure, final status, who deleted it and when. Repeating a
        deletion is safe: deleted is false when the run is already absent.


        Deprecated on 2026-11-19. It keeps working until at least 2027-03-01,
        then may be removed. Deleting procedure runs will no longer be offered
        through the API. To have a run deleted after that date, contact
        Effective support.
      operationId: deleteProcedureRun
      parameters:
        - schema:
            type: string
            format: uuid
            description: Tenant-scoped logical procedure run identifier
          required: true
          description: Tenant-scoped logical procedure run identifier
          name: runId
          in: path
      responses:
        '200':
          description: Run deleted, or already absent.
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: boolean
                  runId:
                    type: string
                    format: uuid
                    description: Tenant-scoped logical procedure run identifier
                required:
                  - deleted
                  - runId
                additionalProperties: false
        '400':
          description: Invalid run UUID or query.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  error:
                    type: string
                required:
                  - code
                  - error
                additionalProperties: false
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  error:
                    type: string
                required:
                  - code
                  - error
                additionalProperties: false
        '403':
          description: The caller may not delete procedure runs.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  error:
                    type: string
                required:
                  - code
                  - error
                additionalProperties: false
        '409':
          description: Run is unfinished or another record depends on it.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  error:
                    type: string
                required:
                  - code
                  - error
                additionalProperties: false
      deprecated: true
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Effective API key. Send Authorization: Bearer sk-eai-...'

````

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