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

Deletes all items from a list view user control.

## Functional area

User Window

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `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/ShogunPost121/pages/1253737177)
- [createListView](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737803)
- [deleteListViewItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736986)
- [getListViewItemCheck](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736774)
- [getListViewSelItems](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736753)
- [getNumListViewItems](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736852)
- [selectListViewItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253739440)
- [setListViewColumns](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738749)
- [setListViewHandler](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737377)
- [setListViewItemCheck](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737441)
- [setListViewItemText](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737858)