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

# archiveFeatureGroup

> Archive a feature group



**mutation** `archiveFeatureGroup(input: ArchiveFeatureGroupInput!): FeatureGroup!`

## Arguments

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

## Returns

`FeatureGroup!`

**`createdAt`**: `DateTime!`

Timestamp of when the record was created

---

**`description`**: `String`

The description of the feature group

---

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

The display name of the feature group

---

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

The unique identifier for the environment

---

**`featureGroupId`**: `String!`

The feature group id

---

**`features`**: `[Feature!]!`

The features in the feature group

---

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

The internal id of the feature group

---

**`isLatest`**: `Boolean!`

Indicates if this is the latest version of the feature group

---

**`status`**: `FeatureGroupStatus!`

The status of the feature group (published, archived)

---

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

Timestamp of when the record was last updated

---

**`versionNumber`**: `Int!`

The version number of the feature group

## Examples

```graphql Mutation
mutation ArchiveFeatureGroup($input: ArchiveFeatureGroupInput!) {
  archiveFeatureGroup(input: $input) {
    createdAt
    description
    displayName
    environmentId
    featureGroupId
    features {
      account {
        accessMethod
        accountEmailDomain
        accountStatus
        defaultSSORoles {
          __typename
        }
        displayName
        emailDomains {
          __typename
        }
      }
      additionalMetaData
      createdAt
      description
      displayName
      enumConfiguration {
        deletedAt
        displayName
        value
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "environmentId": "value",
    "featureGroupId": "string"
  }
}
```

```json Response
{
  "data": {
    "archiveFeatureGroup": {
      "createdAt": "value",
      "description": "string",
      "displayName": "string",
      "environmentId": "value",
      "featureGroupId": "string",
      "features": [
        {
          "account": {
            "accessMethod": "AUTHORIZED_DOMAIN",
            "accountEmailDomain": "string",
            "accountStatus": "ACTIVE",
            "defaultSSORoles": {
              "__typename": "AccessRoles"
            },
            "displayName": "string",
            "emailDomains": [
              {
                "__typename": "AccountEmailDomain"
              }
            ]
          },
          "additionalMetaData": "value",
          "createdAt": "value",
          "description": "string",
          "displayName": "string",
          "enumConfiguration": [
            {
              "deletedAt": "value",
              "displayName": "string",
              "value": "string"
            }
          ]
        }
      ]
    }
  }
}
```


## Related topics

- [ArchiveFeatureGroupInput](https://docs.stigg.io/graphql-reference/types/ArchiveFeatureGroupInput.md)
- [UnArchiveFeatureGroupInput](https://docs.stigg.io/graphql-reference/types/UnArchiveFeatureGroupInput.md)
- [Archiving feature groups](https://docs.stigg.io/documentation/modeling-your-pricing-in-stigg/features/feature-groups/archiving-feature-group.md)
- [Feature group archived](https://docs.stigg.io/api-reference/feature-groups/feature-group-archived.md)
- [Archive feature](https://docs.stigg.io/api-reference/features/archive-feature.md)


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