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

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

## Functional area

User Window

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `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/ShogunPost121/pages/1253738413)
- [createTab](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736857)
- [deleteTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737436)
- [findTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738418)
- [getTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738257)
- [getTabSelItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736870)
- [selectTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737385)
- [setTabHandler](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253739964)