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

# Api Delete Semantic Metric

> Delete a governed metric (and its now-unused measure) DIRECTLY from both environments
(no PR). Pass `?confirm=true` to apply; without it, the response is a 409 carrying the
reference warnings (other metrics / dashboard pages that reference it) so the UI can ask the
user to confirm. Requires GitHub configured. Permission: create_proposals.



## OpenAPI

````yaml /api/openapi.json delete /api/semantic/metrics/{name}
openapi: 3.1.0
info:
  description: >-
    Environment-aware APIs for Platinur configuration, integrations, operations,
    promotions, scheduling, monitoring, and assistant tasks.
  title: Platinur Control Plane API
  version: 1.0.0-rc3
servers:
  - description: Local Platinur control-plane API
    url: http://localhost:8080
security: []
paths:
  /api/semantic/metrics/{name}:
    delete:
      tags:
        - Control Plane
      summary: Api Delete Semantic Metric
      description: >-
        Delete a governed metric (and its now-unused measure) DIRECTLY from both
        environments

        (no PR). Pass `?confirm=true` to apply; without it, the response is a
        409 carrying the

        reference warnings (other metrics / dashboard pages that reference it)
        so the UI can ask the

        user to confirm. Requires GitHub configured. Permission:
        create_proposals.
      operationId: api_delete_semantic_metric_api_semantic_metrics__name__delete
      parameters:
        - in: path
          name: name
          required: true
          schema:
            title: Name
            type: string
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````