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

# Archive Feature

Archives a feature, preventing it from being used in new plans.

## Mutation

<CodeGroup>
  ```graphql Mutation theme={null}
  mutation ArchiveFeature($input: ArchiveFeatureInput!) {
    archiveFeature(input: $input) {
      refId
      featureStatus
    }
  }
  ```

  ```json Variables theme={null}
  {
    "input": {
      "refId": "feature-old"
    }
  }
  ```

  ```json Response theme={null}
  {
    "data": {
      "archiveFeature": {
        "refId": "feature-old",
        "featureStatus": "ARCHIVED"
      }
    }
  }
  ```
</CodeGroup>

## Parameters

<ParamField body="input" type="ArchiveFeatureInput" required>
  Input for archiving a feature

  <Expandable title="properties">
    <ParamField body="refId" type="String" required>
      Feature reference ID
    </ParamField>

    <ParamField body="environmentId" type="UUID">
      Environment ID
    </ParamField>
  </Expandable>
</ParamField>

<Warning>
  Archiving a feature affects all plans that use it. Existing entitlements continue to work, but the feature cannot be added to new plans.
</Warning>

## Related Operations

* [Create Feature](/api-and-sdks/api-reference/mutations/create-feature) - Create feature
* [Update Feature](/api-and-sdks/api-reference/mutations/update-feature) - Update feature
