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

# Delete Monitor

> Soft-deletes a monitor and removes its related scheduling/shadow-agent resources.



## OpenAPI

````yaml openapi/monitors.json DELETE /v1/monitors/{monitor_id}
openapi: 3.0.3
info:
  title: Monitors API
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/monitors/{monitor_id}:
    delete:
      summary: Delete Monitor
      description: >-
        Soft-deletes a monitor and removes linked schedule/shadow-agent
        resources.
      parameters:
        - name: monitor_id
          in: path
          required: true
          description: Unique monitor identifier. Must start with monitor_.
          schema:
            type: string
            pattern: ^monitor_
      responses:
        '200':
          description: Monitor deleted successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  monitor_id:
                    type: string
        '400':
          description: Invalid monitor_id or monitor already deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Invalid API key.
        '404':
          description: Monitor not found.
        '500':
          description: Internal server error while deleting monitor.
      security:
        - Authorization: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form Bearer <token>, where <token>
        is your auth token.

````