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

# XmListDeletePositions(3)

A List function that deletes items from a list based on an array of positions

## NAME

**XmListDeletePositions** — A List function that deletes items from a list based on an array of positions

## SYNOPSIS

```
#include <Xm/List.h>
void XmListDeletePositions(
Widget widget,
int *position_list,
int position_count);
```

## DESCRIPTION

**XmListDeletePositions** deletes noncontiguous items from a list. The function deletes all items whose corresponding positions appear in the *position\_list* array. A warning message is displayed if a specified position is invalid; that is, the value is 0, a negative integer, or a number greater than the number of items in the list.

- *widget*

  Specifies the ID of the List widget

- *position\_list*

  Specifies an array of the item positions to be deleted. The position of the first item in the list is 1; the position of the second item is 2; and so on.

- *position\_count*

  Specifies the number of elements in the *position\_list*.

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

## RELATED

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