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

# Delete a metric source query policy



## OpenAPI

````yaml https://api.arklow.io/swagger/ui/json delete /v1/orgs/{org_id}/metrics/policies/{id}
openapi: 3.1.0
info:
  title: Arklow
  description: Arklow's API
  version: 0.1.0
servers:
  - url: https://api.arklow.io
    description: Production
  - url: http://localhost:3123
    description: Local development
security:
  - apiKey: []
tags:
  - name: actions
  - name: api_keys
  - name: billing
  - name: config
  - name: credentials
  - name: destinations
  - name: invites
  - name: members
  - name: metrics
  - name: notifications
  - name: orgs
  - name: rules
  - name: sources
  - name: users
  - name: ingress
externalDocs:
  url: https://api.arklow.io/swagger/ui
paths:
  /v1/orgs/{org_id}/metrics/policies/{id}:
    delete:
      tags:
        - metrics
      summary: Delete a metric source query policy
      operationId: delete_v1_orgs_by_org_id_metrics_policies_by_id
      parameters:
        - schema:
            type: string
            pattern: ^[0-9]+$
          in: path
          name: org_id
          required: true
        - schema:
            type: string
            pattern: ^[0-9]+$
          in: path
          name: id
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - errors
                properties:
                  data:
                    anyOf:
                      - type: object
                        required:
                          - id
                          - org_id
                          - action_variant
                          - metric_source_query_id
                          - mode
                          - version
                          - applied_version
                          - updated_at
                        properties:
                          id:
                            type: string
                          org_id:
                            type: string
                          action_variant:
                            type: string
                          metric_source_query_id:
                            type: string
                          mode:
                            anyOf:
                              - type: string
                                enum:
                                  - discover
                              - type: string
                                enum:
                                  - manual
                          selector:
                            anyOf:
                              - type: object
                                additionalProperties:
                                  type: array
                                  items:
                                    type: string
                                  minItems: 1
                              - type: 'null'
                          max_series:
                            type: integer
                          version:
                            type: string
                            pattern: ^[0-9]+$
                          applied_version:
                            type: string
                            pattern: ^[0-9]+$
                          updated_at:
                            type: string
                            format: date-time
                          deleted_at:
                            anyOf:
                              - type: 'null'
                              - type: string
                                format: date-time
                      - type: 'null'
                  errors:
                    anyOf:
                      - type: array
                        items:
                          type: object
                          required:
                            - code
                            - message
                          properties:
                            code:
                              type: string
                            message:
                              type: string
                      - type: 'null'
components:
  securitySchemes:
    apiKey:
      type: apiKey
      name: x-arklow-auth
      in: header

````