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

# Remove Workflow Node

> Remove a node from a workflow and scrub edges that pointed to it.



## OpenAPI

````yaml DELETE /v1/workflows/{workflow_id}/nodes/{node_id}
openapi: 3.1.0
info:
  title: xpander.ai API Service
  description: |2-

        The xpander.ai API Service provides a unified REST API for managing AI agents,
        executing tasks, managing knowledge bases, and integrating with external systems.
        
        Features:
        - Agent Management: Create, update, deploy, and delete AI agents
        - Task Execution: Invoke agents with support for sync, async, and streaming modes
        - Knowledge Bases: Manage knowledge bases and documents for RAG workflows
        - Tools: Discover, connect, and attach tools (connectors, custom functions, MCP servers, sub-agents, workflows) to agents and workflows
        - MCP Integration: Model Context Protocol support for standardized AI interactions
        
        Authentication: All endpoints require authentication via either an API key (`x-api-key`) or an OAuth2 JWT (`Authorization: Bearer <jwt>`).
        
  version: '0.001'
servers:
  - url: https://api.xpander.ai
security: []
paths:
  /v1/workflows/{workflow_id}/nodes/{node_id}:
    delete:
      tags:
        - API v1
        - Workflows
        - Workflow Nodes
      summary: Remove Workflow Node
      description: Remove a node from a workflow and scrub any edges that pointed to it.
      operationId: Remove_workflow_node_v1_workflows__workflow_id__nodes__node_id__delete
      parameters:
        - name: workflow_id
          in: path
          required: true
          schema:
            type: string
            title: Workflow Id
        - name: node_id
          in: path
          required: true
          schema:
            type: string
            title: Node Id
        - name: deploy
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              Deploy the workflow after removing so the change takes effect
              immediately.
            default: true
            title: Deploy
          description: >-
            Deploy the workflow after removing so the change takes effect
            immediately.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WorkflowNodeView'
                title: >-
                  Response Remove Workflow Node V1 Workflows  Workflow Id 
                  Nodes  Node Id  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    WorkflowNodeView:
      properties:
        id:
          type: string
          title: Id
          description: Node id (use to update/remove the node).
        type:
          type: string
          title: Type
          description: Node type (action, agent, classifier, ...).
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Node name.
        next_node_ids:
          items:
            type: string
          type: array
          title: Next Node Ids
          description: Ids of nodes that run after this one.
          default: []
        asset_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Asset Id
          description: Referenced asset id for action/agent nodes.
        connection_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Connection Id
          description: Connection id parsed from an action node's asset_id.
        operation_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Operation Id
          description: Operation catalog id parsed from an action node's asset_id.
        target_agent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Target Agent Id
          description: Agent id for agent nodes.
      type: object
      required:
        - id
        - type
      title: WorkflowNodeView
      description: Simplified view of one orchestration node.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      description: API Key for authentication
      in: header
      name: x-api-key

````