---
name: "XmListDeselectItem"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmListDeselectItem"
---

# XmListDeselectItem(3)

A List function that deselects the specified item from the selected list

## NAME

**XmListDeselectItem** — A List function that deselects the specified item from the selected list

## SYNOPSIS

```
#include <Xm/List.h>
void XmListDeselectItem(
Widget widget,
XmString item);
```

## DESCRIPTION

**XmListDeselectItem** unhighlights and removes from the selected list the first item in the list that matches *item*.

- *widget*

  Specifies the ID of the List from whose list an item is deselected.

- *item*

  Specifies the item to be deselected from the list. If *item* appears more than once in the List, only the first occurrence is matched.

For a complete definition of List and its associated resources, see [**XmList**(3)](/XmList/3.md).

## RELATED

[**XmList**(3)](/XmList/3.md).
