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

# Delete Feature

> Deletes a feature by its ID.

Use this to permanently remove a feature. Note: features that are used in products cannot be deleted - archive them instead.

### Body Parameters

The ID of the feature to delete.

### Response

```json 200 theme={null}
{
  "success": true
}
```


## OpenAPI

````yaml openapi POST /v1/features.delete
openapi: 3.1.0
info:
  title: Autumn API
  version: 2.6.0
servers:
  - url: https://api.useautumn.com
    description: Production server
security:
  - secretKey: []
paths:
  /v1/features.delete:
    post:
      tags:
        - features
      description: >-
        Deletes a feature by its ID.


        Use this to permanently remove a feature. Note: features that are used
        in products cannot be deleted - archive them instead.
      operationId: deleteFeature
      parameters:
        - name: x-api-version
          in: header
          required: true
          schema:
            type: string
            default: 2.6.0
          x-speakeasy-globals-hidden: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                feature_id:
                  type: string
                  description: The ID of the feature to delete.
              required:
                - feature_id
              title: DeleteFeatureParams
              examples:
                - feature_id: old-feature
            example:
              feature_id: old-feature
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                required:
                  - success
                examples:
                  - success: true
              example:
                success: true
      x-codeSamples:
        - lang: typescript
          label: Typescript (SDK)
          source: |-
            import { Autumn } from 'autumn-js'

            const autumn = new Autumn()

            const result = await autumn.features.delete({
              featureId: "old-feature",
            });
        - lang: python
          label: Python (SDK)
          source: |-
            from autumn_sdk import Autumn

            autumn = Autumn(secret_key="am_sk_test...")

            res = autumn.features.delete(feature_id="old-feature")
components:
  securitySchemes:
    secretKey:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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