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

# Bulk delete telemetry events

> Permanently deletes up to 1000 events by numeric `id`. Only events belonging to the API key's organization are removed; unknown ids are counted in `not_found` (no error).



## OpenAPI

````yaml /openapi.json delete /events
openapi: 3.1.0
info:
  title: United Logistics API
  version: 0.1.0
  description: >-
    Industry-grade public API for fleet, fuel, and toll operations. Every
    endpoint is scoped to the organization owning the API key. Authentication:
    bearer API key (`ulk_<prefix>_<secret>`). Rate limit: 60 requests/minute/key
    by default (override per key via the dashboard).
  contact:
    name: United Logistics Engineering
    email: sfuentes@assetmg.tech
servers:
  - url: https://app.unitedlogistics.com.do/api/v1
    description: Production
  - url: http://localhost:3000/api/v1
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /events:
    delete:
      tags:
        - Events
      summary: Bulk delete telemetry events
      description: >-
        Permanently deletes up to 1000 events by numeric `id`. Only events
        belonging to the API key's organization are removed; unknown ids are
        counted in `not_found` (no error).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventBulkDeleteRequest'
            example:
              ids:
                - 987654321
                - 987654322
                - 987654399
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventBulkDeleteResponse'
              example:
                deleted: 2
                not_found: 1
                ids:
                  - 987654321
                  - 987654322
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorObject'
              example:
                error:
                  code: bad_request
                  message: limit must be an integer between 1 and 500.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorObject'
              example:
                error:
                  code: unauthorized
                  message: API key missing or invalid.
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorObject'
              example:
                error:
                  code: forbidden
                  message: API key lacks the required scope.
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorObject'
              example:
                error:
                  code: too_many_requests
                  message: Rate limit exceeded.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    EventBulkDeleteRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: integer
            exclusiveMinimum: 0
          minItems: 1
          maxItems: 1000
          description: Numeric event ids to delete. Scoped to the API key's organization.
          example:
            - 987654321
            - 987654322
      required:
        - ids
    EventBulkDeleteResponse:
      type: object
      properties:
        deleted:
          type: integer
        not_found:
          type: integer
        ids:
          type: array
          items:
            type: integer
      required:
        - deleted
        - not_found
        - ids
    ErrorObject:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: unauthorized
            message:
              type: string
              example: Missing Authorization header.
            details: {}
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: ulk_<prefix>_<secret>
      description: >-
        Authorization: Bearer ulk_<prefix>_<secret>. Cree la clave en
        Configuración → API.

````