> ## 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.

# archiveFeature

> Archive a feature



**mutation** `archiveFeature(input: ArchiveFeatureInput!): Feature!`

## Arguments

**`input`**: `ArchiveFeatureInput!` (required)

## Returns

`Feature!`

**`account`**: `Account`

---

**`additionalMetaData`**: `JSON`

The additional metadata for the feature

---

**`createdAt`**: `DateTime`

Timestamp of when the record was created

---

**`description`**: `String`

The description for the feature

---

**`displayName`**: `String!`

The display name for the feature

---

**`enumConfiguration`**: `[EnumConfigurationEntity!]`

The configuration data for the enum feature

---

**`environment`**: `Environment`

---

**`environmentId`**: `UUID!`

The unique identifier for the environment

---

**`featureStatus`**: `FeatureStatus!`

The status of the feature

---

**`featureType`**: `FeatureType!`

The type of the feature: BOOLEAN (on/off access), NUMBER (a numeric limit or quantity), or ENUM (one of a fixed set of values).

---

**`featureUnits`**: `String`

The units for the feature

---

**`featureUnitsPlural`**: `String`

The plural units for the feature

---

**`hasEntitlements`**: `Boolean`

Whether the feature has entitlements

---

**`hasMeter`**: `Boolean`

Whether the feature has a meter

---

**`id`**: `UUID!`

Unique identifier for the entity

---

**`meter`**: `Meter`

Get the meter for the feature

---

**`meterType`**: `MeterType`

How usage accumulates for this feature. `Incremental` and `Fluctuating` features track usage from reported events; `None` means the feature's value isn't usage-tracked — it's just a numeric or enum value carried by the plan (for example, a seat count or a tier setting) rather than something customers consume.

---

**`refId`**: `String!`

The unique identifier for the feature

---

**`unitTransformation`**: `UnitTransformation`

Unit transformation to be applied to the reported usage

---

**`updatedAt`**: `DateTime!`

Timestamp of when the record was last updated

---

**`usedEnumValues`**: `[String!]`

The enum values used by plans or add-ons

## Examples

```graphql Mutation
mutation ArchiveFeature($input: ArchiveFeatureInput!) {
  archiveFeature(input: $input) {
    account {
      accessMethod
      accountEmailDomain
      accountStatus
      defaultSSORoles {
        accountRole
        nonProductionRole
        productionRole
      }
      displayName
      emailDomains {
        accountId
        domain
        id
      }
    }
    additionalMetaData
    createdAt
    description
    displayName
    enumConfiguration {
      deletedAt
      displayName
      value
    }
  }
}
```

```json Variables
{
  "input": {
    "id": "string"
  }
}
```

```json Response
{
  "data": {
    "archiveFeature": {
      "account": {
        "accessMethod": "AUTHORIZED_DOMAIN",
        "accountEmailDomain": "string",
        "accountStatus": "ACTIVE",
        "defaultSSORoles": {
          "accountRole": "MEMBER",
          "nonProductionRole": "ADMIN",
          "productionRole": "ADMIN"
        },
        "displayName": "string",
        "emailDomains": [
          {
            "accountId": "value",
            "domain": "string",
            "id": "value"
          }
        ]
      },
      "additionalMetaData": "value",
      "createdAt": "value",
      "description": "string",
      "displayName": "string",
      "enumConfiguration": [
        {
          "deletedAt": "value",
          "displayName": "string",
          "value": "string"
        }
      ]
    }
  }
}
```


## Related topics

- [TypeScript](https://docs.stigg.io/api-and-sdks/changelog/backend-rest/typescript.md)
- [Java](https://docs.stigg.io/api-and-sdks/changelog/backend-rest/java.md)
- [Go](https://docs.stigg.io/api-and-sdks/changelog/backend-rest/go.md)
- [Archive feature](https://docs.stigg.io/api-reference/features/archive-feature.md)
- [archiveFeatureGroup](https://docs.stigg.io/graphql-reference/mutations/archiveFeatureGroup.md)


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