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

# Delete a dimension

> Deletes a dimension. One that holds usage values is a 409 naming how many, unless the call sends `discard_data=true`: then its values are deleted with it, as the app deletes them (with the product's usage rows left with no values), and cannot be recovered.



## OpenAPI

````yaml /api/statisfy-api.openapi.json delete /v1/products/{product_id}/dimensions/{dimension_id}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/products/{product_id}/dimensions/{dimension_id}:
    delete:
      tags:
        - products
      summary: Delete a dimension
      description: >-
        Deletes a dimension. One that holds usage values is a 409 naming how
        many, unless the call sends `discard_data=true`: then its values are
        deleted with it, as the app deletes them (with the product's usage rows
        left with no values), and cannot be recovered.
      operationId: products_delete_dimension
      parameters:
        - in: path
          name: product_id
          required: true
          schema:
            type: string
        - in: path
          name: dimension_id
          required: true
          schema:
            type: string
        - description: Delete the dimension's usage values with it
          in: query
          name: discard_data
          required: false
          schema:
            default: false
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletedDimension'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    DeletedDimension:
      properties:
        deleted:
          default: true
          title: Deleted
          type: boolean
        discarded_values:
          default: 0
          description: The usage values deleted with it
          title: Discarded Values
          type: integer
        id:
          title: Id
          type: string
      required:
        - id
      title: DeletedDimension
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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