---
title: "deleteAllTabItems"
canonical: "https://help.vicon.com/space/Shogun19/13795924/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/Shogun19/pages/13795766)
- [createTab](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13795900)
- [deleteTabItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13795946)
- [findTabItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13795998)
- [getTabItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796264)
- [getTabSelItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796266)
- [selectTabItem](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796528)
- [setTabHandler](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796668)