---
title: "deleteAllTabItems"
canonical: "https://help.vicon.com/space/Shogun17/13536459/deleteAllTabItems"
format: markdown
---
# Description

Deletes all the tabs that are associated with the specified `userControlID`.

## Functional area

User Window

# Command syntax

## Syntax

|  |
| --- |
| `deleteAllTabItems userControlID` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `userControlId` | int | yes | ID of user control to be deleted. |

### Flags

None

## Return value

void

## Examples

```plaintext
// Create a Tab and add an additional tab to the Main Tab.
int $windowId;
int $mainTab;
 
// First create a User Window to place the Control on
$windowId = `createWindow "MyWindow"`;
//create a main tab controller then add a second tab the main tab
$mainTab = `createTab $windowId "Main" `;
int $secondTab = `addTab $mainTab "Second"`;
 
//delete the tabs
deleteAllTabItems $mainTab;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [addTab](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537693)
- [createTab](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537653)
- [deleteTabItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536483)
- [findTabItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536475)
- [getTabItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537034)
- [getTabSelItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537032)
- [selectTabItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537286)
- [setTabHandler](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537174)