> ## Documentation Index
> Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# The context details page

> This topic explains what the context details page is. The context details page gives you a detailed view of a context and lets you customize its experience from one screen.

> For the complete documentation index, see [llms.txt](/llms.txt). For the full documentation snapshot, see [llms-full.txt](/llms-full.txt).

## Overview

This topic explains what the context details page is. The context details page gives you a detailed view of a context and lets you customize its experience from one screen.

To open the details page for a context, click on the context name from the **Contexts** list.

This is an example of a [multi-context](/home/flags/multi-contexts) details page:

<Frame caption="The details page for a multi-context.">
  ![The details page for a multi-context.](https://files.buildwithfern.com/https://launchdarkly.docs.buildwithfern.com/docs/cabcd9936feae32d1b47ee7f0c8e9ca50f3b941fe7c6a416a4884b2c1c4586e4/assets/images/__LD_UI_no_test/context-details-multi-context.png)
</Frame>

## Attributes

The "Attributes" section displays all of the context attributes associated with the selected context instance version. A context instance version is a context instance that's recorded from a unique source application or LaunchDarkly SDK. It includes only the context attributes you provide in the evaluation call. To learn more, read [Context instances](/home/flags/context-instances).

This illustration shows a flag evaluating two instance versions of the same context:

<Frame caption="Two instance versions of the same context.">
  ![Two instance versions of the same context.](https://files.buildwithfern.com/https://launchdarkly.docs.buildwithfern.com/docs/0736598633b74c5e9be06e3d001af3637ffe9aaa0a2b6481c8b6f5615898c497/assets/images/__not_from_LD_app_UI/context-instance-versions.png)
</Frame>

To view attributes from a different context instance version, choose a different version from the "From source" menu:

<Frame caption="The &#x22;From source&#x22; menu with two context instance versions displayed.">
  ![The "From source" menu with two context instance versions displayed.](https://files.buildwithfern.com/https://launchdarkly.docs.buildwithfern.com/docs/0e7a01bd70cf07eac1ef27aa968482f29317742fcc6b5b8a00ab9cdd08fd0feb/assets/images/__LD_UI_no_test/context-details-instance-menu.png)
</Frame>

To learn more, read [Context attributes](/home/flags/context-attributes).

<Card icon="link">
  You can also use the REST API: [Get context attribute names](/api-reference/contexts/get-context-attribute-names), [Get context attribute values](/api-reference/contexts/get-context-attribute-values)
</Card>

## Segments

The "Segments" section lists any segments the context is a part of. Click on the segment name to open the segment's details page. To learn more, read [Segments](/home/flags/segments).

## Instances

The "Instances" section lists the instances in which the context has appeared, and when LaunchDarkly last encountered each instance:

<Frame caption="The &#x22;Instances&#x22; section with two instances.">
  ![The "Instances" section with two instances.](https://files.buildwithfern.com/https://launchdarkly.docs.buildwithfern.com/docs/f010ed86b5058c1f5e3161c4dbf3dbb5a342a76b7b81078a8ae8e5c2773b1e1f/assets/images/auto/context-details-instances.auto.png)
</Frame>

If a context has an instance count higher than one, that means it is part of a multi-context.

Click on an individual instance name to open the instance details page. The instance details page lists the context kinds, attributes, segments, and expected flag variations for that particular context instance. To learn more, read [Context instances](/home/flags/context-instances).

<Card icon="link">
  You can also use the REST API: [Get context instances](/api-reference/contexts/get-context-instances)
</Card>

### Delete context instances

To delete a context instance:

1. From the **Contexts** list, click on the name of the context with an instance you want to delete. The context details page opens.
2. In the "Instances" section, click on an instance. The instance details page opens.
3. Click **Delete**:

<Frame caption="A context instance detail page with the &#x22;Delete&#x22; button called out.">
  ![A context instance detail page with the "Delete" button called out.](https://files.buildwithfern.com/https://launchdarkly.docs.buildwithfern.com/docs/8700b5e1b6f6054f10aba3c18084a9482972542e9a52ae76d36d7840d5e77c6c/assets/images/auto/context-details-instances-delete-callout.auto.png)
</Frame>

Deleting a context instance deletes all versions of that instance. Deleting context instances from the **Contexts** list does not decrease your [account usage](/home/account/metrics).

<Card icon="link">
  You can also use the REST API: [Delete context instances](/api-reference/contexts/delete-context-instances)
</Card>

## Expected variations

The "Expected variations" section lists the variation you can expect that context instance to receive for each flag or AI Config within your current project and environment.

<Frame caption="The &#x22;Expected variations&#x22; on the details page for a context.">
  ![The "Expected variations" on the details page for a context.](https://files.buildwithfern.com/https://launchdarkly.docs.buildwithfern.com/docs/7804faf72b892040a68775af9477576ed28563051e37baf519cae0f881f6854c/assets/images/auto/context-details-expected-variations.auto.png)
</Frame>

For each flag, you can use your SDK's flag evaluation reason feature to get more information about the flag variations LaunchDarkly serves.

<Card
  icon={<img src="https://fern-image-hosting.s3.us-east-1.amazonaws.com/launchdarkly/terminal.svg" class="terminal" />

}
  iconPosition="left"
>
  Try it in your SDK: [Flag evaluation reasons](/sdk/features/evaluation-reasons)
</Card>

### Modify variations for a context

You can modify the variation a context receives for a feature flag or an AI Config. To do this:

1. Find the "Entity name" you want to modify in the "Expected variations" section.
2. Select a new variation from the **Variation** menu next to the flag:

<Frame caption="The &#x22;Expected variations&#x22; section with a variation called out.">
  ![The "Expected flag variations" section with a variation called out.](https://files.buildwithfern.com/https://launchdarkly.docs.buildwithfern.com/docs/3d5708e45694a9cd630c21ef8f8db2f7b814b67e8aacd3d148db2dcf9230499c/assets/images/auto/context-details-targeting-callout.auto.png)
</Frame>

3. (Optional) To remove individual targeting, either:

* change to the variation from the **Variation** dropdown, or
* click the "Evaluation reason" link to remove the individual target from the flag's **Targeting** tab.

4. Click **Save changes**.

<Note title="Targeting changes are only available for individual contexts.">
  You cannot make targeting changes to context instances with multiple contexts. That option is not available on the instance details page with multiple contexts.
</Note>
