> ## Documentation Index
> Fetch the complete documentation index at: https://browseruse-0aece648-larsen-v1-unified-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel Browsercode Queued Turn

> Cancel one pending queued turn. Idempotent (204 even if already gone).
MOCKED (no-op).



## OpenAPI

````yaml /cloud/openapi/v1.json delete /agents/browsercode/sessions/{session_id}/queue/{message_id}
openapi: 3.1.0
info:
  title: Browser Use API v1
  summary: Unified /api/v1 preview spec, non-production only
  version: 1.0.0
servers:
  - url: https://api-staging-ufcbwvyv9yifyyvc3.browser-use.com/api/v1
    description: Browser Use API v1 (staging)
security: []
paths:
  /agents/browsercode/sessions/{session_id}/queue/{message_id}:
    delete:
      tags:
        - 'Agent: browsercode'
      summary: Cancel Browsercode Queued Turn
      description: |-
        Cancel one pending queued turn. Idempotent (204 even if already gone).
        MOCKED (no-op).
      operationId: >-
        cancel_browsercode_queued_turn_agents_browsercode_sessions__session_id__queue__message_id__delete
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Session Id
        - name: message_id
          in: path
          required: true
          schema:
            type: integer
            title: Message Id
      responses:
        '204':
          description: Successful Response
        '404':
          description: Session not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrowsercodeSessionNotFoundError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    BrowsercodeSessionNotFoundError:
      properties:
        detail:
          type: string
          title: Detail
          default: Session not found
      type: object
      title: BrowsercodeSessionNotFoundError
    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
      in: header
      name: X-Browser-Use-API-Key

````