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

# XmListDeletePos(3)

A List function that deletes an item from a list at a specified position

## NAME

**XmListDeletePos** — A List function that deletes an item from a list at a specified position

## SYNOPSIS

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

## DESCRIPTION

**XmListDeletePos** deletes an item at a specified position. A warning message appears if the position does not exist.

- *widget*

  Specifies the ID of the List from which an item is to be deleted.

- *position*

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

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

## RELATED

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