---
title: "deleteAllListViewItems"
canonical: "https://help.vicon.com/space/Shogun16/13339839/deleteAllListViewItems"
format: markdown
---
# Description

Deletes all items from a list view user control.

## Functional area

User Window

# Command syntax

## Syntax

|  |
| --- |
| `deleteAllListViewItems userControlID` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `userControlID` | integer | yes | ID of list view to operate on |

### Flags

None

## Return value

void

## Examples

```plaintext
// Clear all items from a List View we created earlier.
int $listViewID = `getGlobalIntVar "MyListViewID"`; 
deleteAllListViewItems $listViewID;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [addListViewItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340696)
- [createListView](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13339956)
- [deleteListViewItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13341162)
- [getListViewItemCheck](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340961)
- [getListViewSelItems](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340967)
- [getNumListViewItems](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13341009)
- [selectListViewItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340362)
- [setListViewColumns](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340017)
- [setListViewHandler](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340014)
- [setListViewItemCheck](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340203)
- [setListViewItemText](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340200)