---
title: "Manage conditions"
slug: "manage-conditions"
abstract: "Explains how to manage conditions in Sitecore CDP."
---
# Manage conditions

This topic provides information on how to locate, duplicate, publish, and delete conditions. You can also view details of a condition, including how to obtain the friendly ID and see where a condition is used in Sitecore CDP.

> [!note]
> Team members with a *User*, *Developer*, or *Admin* role in Sitecore Cloud Portal can manage conditions.

## Locate a condition

Locate a condition with the help of the following features:

- Search for a condition by its name, identifier, or content.
- Apply these filters to locate conditions:
    - **Tags** - filter by one or more tags.
    - **Status** - filter on whether the condition is published or has a status of draft.
    - **Last Updated By** - filter by the user who last updated the condition. This is only available for custom conditions. You can sort the conditions list according to first or last updated.

## Publish a condition

You can publish a condition when you want to make it available for users to apply in an audience export. After a condition is published, you can not edit it.

To publish a condition:

1. From the **Conditions** page, open the condition you want to publish.
2. Click **Publish**.
3. In the confirmation dialog, click **Publish**. The status of the condition is updated from *Draft* to *Published*.

## Duplicate a condition

You can duplicate a condition to copy its code, description and tags into a new condition.

To duplicate a condition:

1. From the **Conditions** page, open the condition you wish to duplicate.
2. Click **Duplicate**.
3. In the **Name your template** field, enter a new name for the condition.
4. Click **Create**.

## Copy code from a condition

To copy code from the JavaScript editor to a new condition:

1. From the **Conditions** page, open the condition from which you want to copy code.
2. Click **Copy** and paste the code into the JavaScript editor of a new condition.

## View details of a condition

You can view the details of a condition, including the entities that use it, along with the friendly ID.

To view the details of a condition:

1. From the **Conditions** page, open the condition you want to view.
2. On the **Usage** pane, you can see the number of places in which the condition is reused.
3. To see a detailed list of where the condition is used, click **View list**.
4. In the **Usage** dialog, to open a place where the condition is used, click ![Open link icon](https://doc.sitecore.com/api/markdown-image/cdp/en/users/sitecore-cdp/images/cdp_seg_launch.png).

## Delete a condition

You can only delete custom conditions if they aren't used in any audience exports.

To delete a condition:

1. From the **Conditions** page, open the condition you want to delete.
2. Click ![pers_ellipsCon.png](https://doc.sitecore.com/api/markdown-image/cdp/en/users/sitecore-cdp/images/pers_ellipsCon.png) then click **Delete**.