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

# The context details page

<View title="Developer" />

<View title="Federal docs" />

<View title="EU docs" />

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](/docs/home/flags/multi-contexts) details page:

<Frame caption="The details page for a multi-context.">
  <img src="https://mintcdn.com/launchdarkly/YIC2H8XW-fomhquw/images/__LD_UI_no_test/context-details-multi-context.png?fit=max&auto=format&n=YIC2H8XW-fomhquw&q=85&s=8ccf2795aa5e6e30eb340fa829627603" alt="The details page for a multi-context." width="2206" height="864" data-path="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](/docs/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.">
  <img src="https://mintcdn.com/launchdarkly/7dOLLfhGme_BglBp/images/__not_from_LD_app_UI/context-instance-versions.png?fit=max&auto=format&n=7dOLLfhGme_BglBp&q=85&s=88e115ab96b1cf791a7854007efa540e" alt="Two instance versions of the same context." width="1800" height="756" data-path="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.">
  <img src="https://mintcdn.com/launchdarkly/YIC2H8XW-fomhquw/images/__LD_UI_no_test/context-details-instance-menu.png?fit=max&auto=format&n=YIC2H8XW-fomhquw&q=85&s=09800d022cdbf1c6f04ef7d1aa08b3bb" alt="The &#x22;From source&#x22; menu with two context instance versions displayed." width="918" height="864" data-path="images/__LD_UI_no_test/context-details-instance-menu.png" />
</Frame>

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

<Card icon="https://mintcdn.com/launchdarkly/YIC2H8XW-fomhquw/assets/icons/openapi-logo.svg?fit=max&auto=format&n=YIC2H8XW-fomhquw&q=85&s=dd9578a9668a86e1a8b8c314921f204c" horizontal width="2500" height="2452" data-path="assets/icons/openapi-logo.svg">
  You can also use the REST API: [Get context attribute names](/docs/api/contexts/get-context-attribute-names), [Get context attribute values](/docs/api/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](/docs/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.">
  <img src="https://mintcdn.com/launchdarkly/-b7nPh0oyigf6iW7/images/auto/context-details-instances.auto.png?fit=max&auto=format&n=-b7nPh0oyigf6iW7&q=85&s=ec49fcb1dac508733b017053b40469f5" alt="The &#x22;Instances&#x22; section with two instances." width="1128" height="466" data-path="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](/docs/home/flags/context-instances).

<Card icon="https://mintcdn.com/launchdarkly/YIC2H8XW-fomhquw/assets/icons/openapi-logo.svg?fit=max&auto=format&n=YIC2H8XW-fomhquw&q=85&s=dd9578a9668a86e1a8b8c314921f204c" horizontal width="2500" height="2452" data-path="assets/icons/openapi-logo.svg">
  You can also use the REST API: [Get contexts](/docs/api/contexts/get-contexts)
</Card>

### Delete context instances

To delete a context instance:

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

<Frame caption="A context instance detail page with the &#x22;Delete&#x22; button called out.">
  <img src="https://mintcdn.com/launchdarkly/-b7nPh0oyigf6iW7/images/auto/context-details-instances-delete-callout.auto.png?fit=max&auto=format&n=-b7nPh0oyigf6iW7&q=85&s=f41ce949d14ee445419bcf86d526dfca" alt="A context instance detail page with the &#x22;Delete&#x22; button called out." width="2668" height="218" data-path="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](/docs/home/account/metrics).

## Expected variations

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

<Frame caption="The &#x22;Expected variations&#x22; on the details page for a context.">
  <img src="https://mintcdn.com/launchdarkly/-b7nPh0oyigf6iW7/images/auto/context-details-expected-variations.auto.png?fit=max&auto=format&n=-b7nPh0oyigf6iW7&q=85&s=6066dad0888929cf23e9474fd8e3edf6" alt="The &#x22;Expected variations&#x22; on the details page for a context." width="1556" height="666" data-path="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="rectangle-terminal" horizontal>
  Try it in your SDK: [Flag variation evaluation details](/docs/sdk/features/evaluation-reasons)
</Card>

### Modify variations for a context

You can modify the variation a context receives for a feature flag or an AgentControl 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.">
  <img src="https://mintcdn.com/launchdarkly/-b7nPh0oyigf6iW7/images/auto/context-details-targeting-callout.auto.png?fit=max&auto=format&n=-b7nPh0oyigf6iW7&q=85&s=715a5b8f4e10bc095a079d74ad59e35a" alt="The &#x22;Expected flag variations&#x22; section with a variation called out." width="1564" height="624" data-path="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>
  **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>
