---
title: "deleteAllTabItems"
canonical: "https://help.vicon.com/space/ShogunPost120/1043038324/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/ShogunPost120/pages/1043038754)
- [createTab](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043040189)
- [deleteTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039797)
- [findTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039071)
- [getTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038854)
- [getTabSelItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038979)
- [selectTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038392)
- [setTabHandler](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038553)