# Exclude and Remove codes from Concept Set

{% hint style="info" %}
This page is a continuation of [Create concept set using standard-code descendants](https://docs.finngen.fi/working-in-the-sandbox/which-tools-are-available/atlas/detailed-guide/how-to-define-a-cohort-in-atlas/concept-sets/selecting-descendants-for-a-concept-set-in-atlas) tutorial.
{% endhint %}

Once you have created a Concept Set, you can exclude or remove codes using the **Concept Set expression** page or the **Included Concepts** page.

### Exclude codes

The following example shows how to exclude codes using the **Included Concepts** page.

* Select the **Id** column check box on the left for every code you wish to exclude. In the example below we have clicked all shown codes.
* Scroll down the page, select the **Exclude** check box and click the **Add to Concept Set** Button.

<figure><img src="https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-e2a9589bb8b871c70d8e2d4ccb0b1544ab039b7b%2Fimage%20(433).png?alt=media" alt=""><figcaption></figcaption></figure>

* You can see the excluded codes on the **Concept Set Expression** page; they have their **Exclude** column checkbox selected. In the example below, the number of concepts shown in the **Included Concepts** tab was reduced to 96.

<figure><img src="https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-43e696d6dfb19a9c9d0e0b75a6fa126b7cf7adc6%2Fimage%20(733).png?alt=media" alt=""><figcaption></figcaption></figure>

### Remove codes

The following example shows how to remove codes using the **Concept Set Expression** page.

* Select the **Id** column check box on the left for every code you wish to remove. In the example below we have clicked all shown codes except for Asthma and Allergic asthma.

<figure><img src="https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-472771f366ec78fc3655cae850243f5502a57ded%2Fimage%20(731).png?alt=media" alt=""><figcaption></figcaption></figure>

* Scroll down the page, and click the **Remove Selected** Button.

<figure><img src="https://3072695768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhYL0UTLjqsuIdK0SSO%2Fuploads%2Fgit-blob-eff77b661a9829b0a31baaabb6bc2fa6183e4225%2Fimage%20(142).png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you remove excluded standard code descendants, then these codes will become part of the Concept Set again.
{% endhint %}
