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

# Delete an alert rule

> Delete an alert rule by its ID.



## OpenAPI

````yaml DELETE /v1/alert-rules/{rule_id}
openapi: 3.1.0
info:
  title: PolyAI Alerts API
  version: 1.0.8
  description: Manage alert rules and query active alerts.
servers:
  - url: https://api.us.poly.ai
    description: US region
  - url: https://api.eu.poly.ai
    description: EU region
  - url: https://api.uk.poly.ai
    description: UK region
  - url: https://api.studio.poly.ai
    description: Studio region
security:
  - ApiKeyAuth: []
paths:
  /v1/alert-rules/{rule_id}:
    delete:
      summary: Delete an alert rule
      description: Delete an alert rule by its ID.
      operationId: deleteAlertRule
      parameters:
        - $ref: '#/components/parameters/RuleId'
      responses:
        '204':
          description: Alert rule deleted successfully.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    RuleId:
      name: rule_id
      in: path
      required: true
      description: The rule_id must be a prefixed ID (e.g. ar_0Kx4mNpQ8rWvYb2dFgHjLs).
      schema:
        type: string
        pattern: ^ar_[A-Za-z0-9]+$
        example: ar_0Kx4mNpQ8rWvYb2dFgHjLs
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnprocessableEntity:
      description: Validation error or malformed resource ID.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/HTTPValidationError'
    InternalServerError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        message:
          type: string
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
    ValidationError:
      type: object
      required:
        - loc
        - msg
        - type
      properties:
        loc:
          type: array
          items:
            anyOf:
              - type: string
              - type: integer
        msg:
          type: string
        type:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: >-
        An API key is a token that you provide when making API calls. Include
        the token in a header parameter called `X-API-KEY`.

````