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

# XmListDeleteItems(3)

A List function that deletes items from the list

## NAME

**XmListDeleteItems** — A List function that deletes items from the list

## SYNOPSIS

```
#include <Xm/List.h>
void XmListDeleteItems(
Widget widget,
XmString *items,
int item_count);
```

## DESCRIPTION

**XmListDeleteItems** deletes the specified items from the list. For each element of *items*, the first item in the list that matches that element is deleted. A warning message appears if any of the items do not exist.

- *widget*

  Specifies the ID of the List from whose list an item is deleted

- *items*

  Specifies a pointer to items to be deleted from the list

- *item\_count*

  Specifies the number of elements in *items* This number must be nonnegative.

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

## RELATED

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