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

# Zbiorcze usunięcie monitorów

> Usuwa wiele monitorów na raz po identyfikatorach (`id`). Usuwane są tylko monitory należące do użytkownika; nieznane identyfikatory są ignorowane. Zwraca liczbę faktycznie usuniętych pozycji. Operacja nieodwracalna — historia zdarzeń usuwana razem z monitorem.



## OpenAPI

````yaml /openapi.json post /v1/monitors/bulk-delete
openapi: 3.1.0
info:
  title: krdata API
  description: >

    krdata udostępnia dane z polskich rejestrów gospodarczych (KRS, CRBR, KRZ,
    MSiG, biała lista VAT)

    w postaci jednego, spójnego API.


    Uwierzytelnianie odbywa się przez klucz API przekazywany w nagłówku
    `x-api-key`.

    Limity zapytań oraz dzienne pule (PDF, WPV, raporty) wynikają z wybranego
    abonamentu —

    szczegóły zwraca endpoint `GET /v1/usage/summary`.
  version: 0.1.0
servers:
  - url: https://api.krdata.pl
    description: Production
security: []
paths:
  /v1/monitors/bulk-delete:
    post:
      tags:
        - Monitors
      summary: Zbiorcze usunięcie monitorów
      description: >-
        Usuwa wiele monitorów na raz po identyfikatorach (`id`). Usuwane są
        tylko monitory należące do użytkownika; nieznane identyfikatory są
        ignorowane. Zwraca liczbę faktycznie usuniętych pozycji. Operacja
        nieodwracalna — historia zdarzeń usuwana razem z monitorem.
      operationId: monitors-bulk-delete
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MonitorBulkDelete'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorBulkDeleteResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    MonitorBulkDelete:
      properties:
        ids:
          items:
            type: string
          type: array
          maxItems: 1000
          minItems: 1
          title: Ids
      type: object
      required:
        - ids
      title: MonitorBulkDelete
    MonitorBulkDeleteResult:
      properties:
        deleted:
          type: integer
          title: Deleted
      type: object
      required:
        - deleted
      title: MonitorBulkDeleteResult
    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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````