---
title: "deleteAllListViewItems"
canonical: "https://help.vicon.com/space/Shogun19/13795922/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/Shogun19/pages/13795754)
- [createListView](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13795876)
- [deleteListViewItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13795936)
- [getListViewItemCheck](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796156)
- [getListViewSelItems](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796160)
- [getNumListViewItems](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796192)
- [selectListViewItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796512)
- [setListViewColumns](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796608)
- [setListViewHandler](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796610)
- [setListViewItemCheck](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796612)
- [setListViewItemText](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796614)