---
title: Create a Feature Flag
slug: js-api/create-feature-flag
description: How to create, edit, and delete a feature flag in the Monetate platform
image:  https://archbee-image-uploads.s3.amazonaws.com/ceIfEvQHzQk1IVxoRWUh7/K9eTL4jKm7UQINb6zNziJ-20250912-181225.png
createdAt: 2024-06-24T13:11:23.100Z
---

Follow these steps to create a feature flag in Monetate.Follow these steps to create a feature flag in Monetate.

1. Log into the [Monetate platform](https://marketer.monetate.net/).
2. Click **COMPONENTS** in the top navigation bar, and then select **Feature Flags**.

   ![Callout of the 'Feature Flags' option in the COMPONENTS menu of the Monetate platform](https://dyzz9obi78pm5.cloudfront.net/app/image/id/64e4ddcb7099432b7f30f768/n/components-components-to-feature-flags.png)
3. Click **CREATE FEATURE FLAG**.

   ![Callout of the 'CREATE FEATURE FLAG' button on the Feature Flag list page in the Monetate platform](https://dyzz9obi78pm5.cloudfront.net/app/image/id/64e4de5834c6c71d3540de84/n/feature-flags-feature-flags-list-page-create-feature-flag.png)
4. Type a name and description for the feature flag into the respective fields, then use the slider to set a traffic percentage, and then click **SAVE**.

   ::Image[]{src="https://dyzz9obi78pm5.cloudfront.net/app/image/id/64e4df5264199f15f53f3ce3/n/feature-flags-create-feature-flag-modal-name-describe-percentage-save.gif" size="66" width="336" height="410" position="center" alt="Animated demonstration of a user inputting a name and description for a new feature flag, then setting the traffic percentage, and then clicking the SAVE button on the Create Feature Flag modal" showCaption="false"}

You can now link the feature flag you created to the code developed for the new feature. See [Setting Up Feature Flags on a Commerce Site](docId\:RAhcD76u42wC9AsMvQi5V) in [Getting Started with Feature Flags](docId\:RAhcD76u42wC9AsMvQi5V) for more information.

## Editing a Feature Flag

Follow these steps to edit a feature flag.

1. Log into the [Monetate platform](https://marketer.monetate.net/).
2. Click **COMPONENTS** in the top navigation bar, and then select **Feature Flags**.
3. Hover your mouse pointer within the row for the feature flag that you want to edit, click the additional options menu (**...**) that appears at the end of the row, and then select **Edit Feature Flag**.

   ![Callout of the additional options menu for a feature flag and its Edit Feature Flag option, on the Feature Flag list in the Monetate platformpage](https://dyzz9obi78pm5.cloudfront.net/app/image/id/64e4e162a45e1d233974d002/n/feature-flags-feature-flags-list-page-additional-options-edit-feature-flag.png)
4. Revise the feature flag as necessary in the Edit Feature Flag modal, and then click **SAVE**.

   ::Image[]{src="https://dyzz9obi78pm5.cloudfront.net/app/image/id/64e4e27809f2896d0900c4a4/n/feature-flags-edit-feature-flag-modal-percentage-save.gif" size="66" width="434" height="440" position="center" alt="Animated demonstration of a user  revising the traffic percentage in the Edit Feature Flag modal, and then clicking the SAVE button" showCaption="false"}

## Deleting a Feature Flag

Follow these steps to delete a feature flag.

:::hint{type="warning"}
Before deleting a feature flag, ensure that the necessary changes have been made to the relevant code so that the feature is not negatively impacted.
:::

1. Log into the [Monetate platform](https://marketer.monetate.net/).
2. Click **COMPONENTS** in the top navigation bar, and then select **Feature Flags**.

   ![Callout of the Feature Flags option in the COMPONENTS menu in the Monetate platform](https://dyzz9obi78pm5.cloudfront.net/app/image/id/64e4ddcb7099432b7f30f768/n/components-components-to-feature-flags.png)
3. Hover your mouse pointer within the row for the feature flag that you want to delete, click the additional options menu (**...**) that appears at the end of the row, and then select **Delete Feature Flag**.

   ![Callout of the additional options menu for a feature flag and its Delete Feature Flag option, on the Feature Flag list page in the Monetate platform](https://dyzz9obi78pm5.cloudfront.net/app/image/id/64e4e3e1c91500181536d852/n/feature-flags-feature-flags-list-page-additional-options-delete-feature-flag.png)
4. In the Delete Feature Flag modal, click the checkbox to acknowledge that you understand you're permanently deleting the feature flag, and then click **DELETE**.

   ::Image[]{src="https://dyzz9obi78pm5.cloudfront.net/app/image/id/64e4e4745ff0641f373273a4/n/feature-flags-delete-feature-flag-modal-i-understand-delete.png" size="66" width="434" height="262" position="center" alt="The Delete Feature Flag modal, with a callout of the statement that states, 'I understand that deleting this feature flag will be permanent,' and a callout of the DELETE button" showCaption="false"}

