---
title: "deleteAllTabItems"
canonical: "https://help.vicon.com/space/Shogun112/31229312/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

## Return value

void

None

> Macro (scroll-pagebreak)

## 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;
```

# Additional information

## Related commands

- [addTab](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31235738)
- [createTab](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31230235)
- [deleteTabItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31235529)
- [findTabItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31233155)
- [getTabItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31231799)
- [getTabSelItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31237122)
- [selectTabItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31229297)
- [setTabHandler](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31231204)