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

# Delete Workflow

> Permanently delete a workflow definition. Existing run history is preserved.



## OpenAPI

````yaml https://api.sixtyfour.ai/openapi.json post /workflows/delete_workflow
openapi: 3.1.0
info:
  title: Sixtyfour API
  description: >-
    Intelligence API for People and Entities. Deploy AI agents that investigate,
    resolve identities, map relationships, and surface risk signals
  contact:
    name: Sixtyfour
    url: https://sixtyfour.ai/
    email: support@sixtyfour.ai
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api.sixtyfour.ai
    description: Production
security: []
tags:
  - name: Enrichment
    description: Find and enrich emails, phones, and LinkedIn for people and companies.
  - name: org-chart
    description: Discover people inside a company and build org charts.
  - name: Search
    description: Run deep and filter searches over Sixtyfour's data.
  - name: Workflow
    description: Create, run, and manage enrichment workflows.
  - name: Workflow Schedules
    description: Create and manage recurring schedules for workflows.
  - name: Account
    description: Manage and inspect your account and credit balance.
  - name: Intelligence
    description: Verify identity attributes such as age using high-tier OSINT research.
paths:
  /workflows/delete_workflow:
    post:
      tags:
        - Workflow
      summary: Delete Workflow
      description: >-
        Permanently delete a workflow definition. Existing run history is
        preserved.
      operationId: delete_workflow_workflows_delete_workflow_post
      parameters:
        - name: workflow_id
          in: query
          required: true
          schema:
            type: string
            title: Workflow Id
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowResponse'
        '400':
          description: Request was rejected by the route's validation rules.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: Invalid request body
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: Invalid API key
        '403':
          description: Caller does not have access to this workflow.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: Access denied
        '404':
          description: Workflow, run, or job not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: Workflow not found
        '409':
          description: Workflow with the supplied ID already exists.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: >-
                  Workflow with ID 0123abcd-1234-5678-9abc-def012345678 already
                  exists. Use update endpoint to modify existing workflows.
        '422':
          description: Request body failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Unexpected server error. Retry with backoff.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              example:
                detail: Internal server error
components:
  schemas:
    WorkflowResponse:
      properties:
        id:
          type: string
          title: Id
          description: Workflow identifier.
        user_uuid:
          anyOf:
            - type: string
            - type: 'null'
          title: User Uuid
          description: User who created the workflow.
        org_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Org Id
          description: Organization that owns the workflow.
        name:
          type: string
          title: Name
          description: Workflow name.
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Workflow description.
        status:
          type: string
          title: Status
          description: Lifecycle status of the workflow definition (e.g. draft, ready).
        step:
          type: string
          title: Step
          description: Current authoring step in the builder UI.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Timestamp when the record was created.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Timestamp when the record was last updated.
        last_run_date:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Run Date
          description: Timestamp of the most recent run.
        workflow_definition:
          anyOf:
            - $ref: '#/components/schemas/WorkflowGraph'
            - type: 'null'
          description: Workflow graph; included on detail responses.
      type: object
      required:
        - id
        - name
        - status
        - step
        - created_at
        - updated_at
      title: WorkflowResponse
    HTTPValidationError:
      title: HTTPValidationError
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
      example:
        detail:
          - loc:
              - body
              - target_company
              - domain
            msg: Field required
            type: missing
            input: null
            ctx: {}
    WorkflowGraph:
      properties:
        blocks:
          items:
            $ref: '#/components/schemas/Block'
          type: array
          title: Blocks
          description: All blocks in the workflow.
        edges:
          items:
            $ref: '#/components/schemas/WorkflowEdge'
          type: array
          title: Edges
          description: Edges defining the execution order between blocks.
      type: object
      required:
        - blocks
        - edges
      title: WorkflowGraph
      description: A workflow expressed as a directed graph of blocks and edges.
    ValidationError:
      title: ValidationError
      type: object
      required:
        - loc
        - msg
        - type
      properties:
        loc:
          type: array
          items:
            oneOf:
              - type: string
              - type: integer
          description: Path to the field that failed validation.
          example:
            - body
            - target_company
            - domain
        msg:
          type: string
          description: Human-readable error message.
          example: Field required
        type:
          type: string
          description: Error code (e.g. 'missing', 'value_error').
          example: missing
        input:
          description: The offending input value (any type, may be null).
          nullable: true
          example: null
        ctx:
          type: object
          description: Optional error context.
          additionalProperties: true
          example: {}
    Block:
      properties:
        sequence_number:
          type: integer
          title: Sequence Number
          description: Position of the block in the workflow execution order.
        block_type:
          type: string
          title: Block Type
          description: Category of block (e.g. 'source', 'enrich', 'output').
        block_name:
          type: string
          title: Block Name
          description: Registered block type name (e.g. 'enrich_lead', 'find_email').
        specs:
          additionalProperties: true
          type: object
          title: Specs
          description: Block-specific configuration; shape depends on `block_name`.
        block_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Block Id
          description: Stable block identifier; non-UUID values are normalized server-side.
      type: object
      required:
        - sequence_number
        - block_type
        - block_name
        - specs
      title: Block
      description: A single step inside a workflow.
    WorkflowEdge:
      properties:
        from_block_id:
          type: string
          title: From Block Id
          description: Source block ID for this edge.
        to_block_id:
          type: string
          title: To Block Id
          description: Destination block ID for this edge.
        condition:
          anyOf:
            - type: string
            - type: 'null'
          title: Condition
          description: Reserved for future conditional branching.
      type: object
      required:
        - from_block_id
        - to_block_id
      title: WorkflowEdge
      description: A directed edge connecting two blocks in a workflow graph.

````