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

# XmListDeleteItemsPos(3)

A List function that deletes items from the list starting at the given position

## NAME

**XmListDeleteItemsPos** — A List function that deletes items from the list starting at the given position

## SYNOPSIS

```
#include <Xm/List.h>
void XmListDeleteItemsPos(
Widget widget,
int item_count,
int position);
```

## DESCRIPTION

**XmListDeleteItemsPos** deletes the specified number of items from the list starting at the specified position.

- *widget*

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

- *item\_count*

  Specifies the number of items to be deleted. This number must be nonnegative.

- *position*

  Specifies the position in the list of the first item to be deleted. A value of 1 indicates that the first deleted item is the first item in the list; a value of 2 indicates that it is the second item; and so on.

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

## RELATED

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