---
title: "removeLayer"
canonical: "https://help.vicon.com/space/Shogun18/13668230/removeLayer"
format: markdown
---
# Description

Remove indicated layer from the active clip. The error will be generated if there is no clip on the scene.

## Functional area

NLE

# Command syntax

## Syntax

|  |
| --- |
| `removeLayer "layerName"` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `layerName` | string | yes | The name of the layer to remove |

### Flags

None

## Return value

void

## Examples

```plaintext
// Print the name of the active clip
string $clip = `getActiveClip`;
print $clip;

// Add new layer
string $name = "new layer";
addLayer $name;

// Print all layers
string $layers [];
$layers = `getLayers`;
print $layers;

// Remove layer
removeLayer $name;

// Print all layers
$layers = `getLayers`;
print $layers;
```

# Additional information

## Related commands

- [addLayer](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13669124)
- [addToClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668874)
- [copyClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668840)
- [cropClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668804)
- [deleteClipData](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668736)
- [flatten](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668718)
- [getActiveClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668710)
- [getActiveLayer](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668708)
- [getClips](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668396)
- [moveClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668974)
- [offsetClips](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668264)
- [removeFromClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668232)
- [resetClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668252)
- [selectClipObjects](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668041)
- [setActiveClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13667953)
- [setActiveLayer](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13667951)
- [tileClips](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668586)