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

# Delete billable events

> Delete existing billable events.



## OpenAPI

````yaml delete /v1/events
openapi: 3.1.0
info:
  title: Hyperline Ingest API
  version: 0.0.0
servers:
  - url: https://ingest.hyperline.co
  - url: https://sandbox.ingest.hyperline.co
security: []
paths:
  /v1/events:
    delete:
      tags:
        - Usage > Billable events
      summary: Delete billable events
      description: Delete existing billable events.
      operationId: deleteBillableEvents
      requestBody:
        description: Delete billable events payload
        content:
          application/json:
            schema:
              oneOf:
                - type: object
                  properties:
                    matching:
                      type: string
                      enum:
                        - record_ids
                    record_ids:
                      type: array
                      items:
                        type: string
                      maxItems: 5000
                      description: List of event record IDs to delete.
                  required:
                    - matching
                    - record_ids
                - type: object
                  properties:
                    matching:
                      type: string
                      enum:
                        - customer_id
                    customer_id:
                      type: string
                      description: Customer ID for which the events will be deleted.
                    event_type:
                      type: string
                      minLength: 1
                      description: >-
                        Type corresponding to the event. When creating a dynamic
                        product, this type will be used to map the related
                        events to specific prices.
                      example: api_call
                  required:
                    - matching
                    - customer_id
                - type: object
                  properties:
                    matching:
                      type: string
                      enum:
                        - event_type
                    event_type:
                      type: string
                      minLength: 1
                      description: >-
                        When matching by `event_type`, every event of this type
                        will be deleted across all customers.
                      example: api_call
                  required:
                    - matching
                    - event_type
                - type: object
                  properties:
                    matching:
                      type: string
                      enum:
                        - all
                      description: All events will be deleted.
                  required:
                    - matching
      responses:
        '200':
          description: Events deleted
          content:
            application/json:
              schema:
                type: number
                description: Number of events deleted
                example: 1
        '503':
          description: >-
            Ingestion is temporarily overloaded. The request was not processed:
            retry after the delay given by the `Retry-After` header, with
            exponential backoff and jitter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngestionOverloadedError'
      security:
        - bearer: []
components:
  schemas:
    IngestionOverloadedError:
      type: object
      properties:
        statusCode:
          type: number
          enum:
            - 503
          example: 503
        type:
          type: string
          enum:
            - ServiceUnavailable
          example: ServiceUnavailable
        message:
          type: string
          description: Human-readable reason for the rejection.
          example: Event ingestion is temporarily overloaded, retry in 30 seconds
        retryAfterSeconds:
          type: integer
          description: >-
            Seconds to wait before retrying, same value as the `Retry-After`
            header.
          example: 30
      required:
        - statusCode
        - type
        - message
        - retryAfterSeconds
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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