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

# Remove Contacts from Action

> Remove specific contacts (or all waiting contacts) from a workflow at this specific action. Marks enrollments as `removed` and cancels their in-flight executions.



## OpenAPI

````yaml POST /workflow/{workflow_id}/actions/{action_id}/remove/
openapi: 3.1.0
info:
  title: Outbox AI API
  description: API for managing AI agents (chatbots and voicebots) on the Outbox platform
  version: 1.0.0
servers:
  - url: https://api.getoutbox.ai
security: []
paths:
  /workflow/{workflow_id}/actions/{action_id}/remove/:
    post:
      tags:
        - workflow
      summary: Remove Contacts at Action
      description: >-
        Remove specific contacts (or all waiting contacts) from a workflow at
        this specific action. Marks enrollments as `removed` and cancels their
        in-flight executions.
      operationId: workflow_actions_remove_create
      parameters:
        - in: path
          name: action_id
          schema:
            type: string
            format: uuid
          required: true
        - in: path
          name: workflow_id
          schema:
            type: string
            format: uuid
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActionRemoveContactsRequestRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ActionRemoveContactsRequestRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ActionRemoveContactsRequestRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionRemoveContactsResponse'
          description: ''
        '400':
          description: >-
            Neither `contact_ids` nor `remove_all` was provided, or action is
            not top-level.
        '404':
          description: Workflow or action not found.
      security:
        - jwtAuth: []
components:
  schemas:
    ActionRemoveContactsRequestRequest:
      type: object
      properties:
        contact_ids:
          type: array
          items:
            type: string
            format: uuid
        remove_all:
          type: boolean
          default: false
          description: Remove every waiting contact at this action.
    ActionRemoveContactsResponse:
      type: object
      properties:
        removed:
          type: integer
        cancelled:
          type: integer
        message:
          type: string
      required:
        - cancelled
        - message
        - removed
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````