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

# Delete Remote Operation

> Delete a remote operation on your fleet platform. This cannot be undone. `success` is false when the platform refused it or does not support it.

Integrations talk to the fleet platform your company is linked to (for example Wunder, ATOM or an MDS feed) and return its data in one common format, whatever the platform. They need a fleet integration configured for your company; `GET /integrations/availability` shows which kinds of data and operations your platform supports.

**Failure Modes:**
- **401**: Token is missing or invalid
- **403**: `access_denied` when your role or API key lacks the permission below
- **404**: `no_data_binding` (`kind: fleet`) when no fleet integration is configured for your company
- **422**: Invalid parameters, or your fleet platform does not support this (`Unknown provider: ...`)
- **502**: The fleet platform returned an error (`Upstream provider error: ...`)

**Required Auth Scopes:**
- `integrations:remote-ops:manage`



## OpenAPI

````yaml /api-reference/openapi.json delete /integrations/remote-operations/{operation_id}
openapi: 3.1.0
info:
  title: SWITCH API
  version: '1.0'
  description: >-
    The SWITCH API gives mobility and logistics teams programmatic access to
    SWITCH forecasts, fleet operations, routing and analytics. Every request is
    authenticated with an API key sent as a bearer token.
servers:
  - url: https://stage-api.getswitch.io
    description: Stage
security: []
tags:
  - name: Forecast
    description: Demand forecasts per zone and time window.
  - name: Operations
    description: Fleet imbalance, rebalancing suggestions and generated tasks.
  - name: Routing
    description: Route optimisation for single and multiple fleets.
  - name: Routing Sessions
    description: Saved routing sessions, their routes and drivers.
  - name: Routing Operations
    description: Complete, undo and re-route the stops of a route.
  - name: Fleet Management
    description: Your depots, stations, drivers and cargo vehicles.
  - name: Integrations
    description: Vehicles, statuses and commands on your fleet platform.
  - name: Station Based Analytics
    description: Analytics for station-based (docked) services.
  - name: Zone Based Analytics
    description: Analytics for free-floating services, by zone.
  - name: Free Float Analytics
    description: Trip history for free-floating services.
  - name: Transit Analytics
    description: Punctuality and service delivery for public transit.
  - name: Live
    description: Real-time fleet, delivery and transit status.
  - name: Grids
    description: Spatial grids used by forecasts and analytics.
  - name: API Keys
    description: Create and manage the API keys you call this API with.
paths:
  /integrations/remote-operations/{operation_id}:
    delete:
      tags:
        - Integrations
      summary: Delete Remote Operation
      description: >-
        Delete a remote operation on your fleet platform. This cannot be undone.
        `success` is false when the platform refused it or does not support it.


        Integrations talk to the fleet platform your company is linked to (for
        example Wunder, ATOM or an MDS feed) and return its data in one common
        format, whatever the platform. They need a fleet integration configured
        for your company; `GET /integrations/availability` shows which kinds of
        data and operations your platform supports.


        **Failure Modes:**

        - **401**: Token is missing or invalid

        - **403**: `access_denied` when your role or API key lacks the
        permission below

        - **404**: `no_data_binding` (`kind: fleet`) when no fleet integration
        is configured for your company

        - **422**: Invalid parameters, or your fleet platform does not support
        this (`Unknown provider: ...`)

        - **502**: The fleet platform returned an error (`Upstream provider
        error: ...`)


        **Required Auth Scopes:**

        - `integrations:remote-ops:manage`
      operationId: >-
        delete_remote_operation_integrations_remote_operations__operation_id__delete
      parameters:
        - name: operation_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Remote operation id: the `id` returned by `GET
              /integrations/remote-operations`.
            title: Operation Id
          description: >-
            Remote operation id: the `id` returned by `GET
            /integrations/remote-operations`.
        - name: config_source
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/ConfigSource'
            description: >-
              Legacy parameter, kept for compatibility and ignored: the
              integration is always the one configured for your company.
            default: mobile
          description: >-
            Legacy parameter, kept for compatibility and ignored: the
            integration is always the one configured for your company.
      responses:
        '200':
          description: Request sent to the fleet platform. `success` says if it applied.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MutationResponse'
        '401':
          description: Unauthorized. Token is missing or invalid.
        '403':
          description: Forbidden. Insufficient permissions.
        '404':
          description: Not Found. No fleet integration configured for your company.
        '422':
          description: >-
            Unprocessable Entity. Invalid parameters, or not supported by your
            fleet platform.
        '502':
          description: Bad Gateway. The fleet platform returned an error.
      security:
        - HTTPBearer: []
        - HTTPBearer: []
components:
  schemas:
    ConfigSource:
      type: string
      enum:
        - mobile
        - ops
      title: ConfigSource
      description: Accepted for compatibility (``?config_source=``) and ignored.
    MutationResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: >-
            True when the fleet platform accepted the change; false when it
            refused it or your platform does not support this change.
        detail:
          type:
            - string
            - 'null'
          title: Detail
          description: Extra information, when given.
      type: object
      required:
        - success
      title: MutationResponse
      description: Standard response for write operations.
      examples:
        - success: true
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      description: >-
        An API key, sent as `Authorization: Bearer <key>`. Create one in the
        SWITCH Copilot under **Settings → API keys** (needs the API keys
        permission in your company), or with `POST /auth/api-keys`. The key is
        shown once, at creation.

````

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