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

> Macro (scroll-pagebreak)

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

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [addLayer](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31231711)
- [addToClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31236123)
- [copyClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31234183)
- [cropClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31231656)
- [deleteClipData](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31232946)
- [flatten](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31236768)
- [getActiveClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31235976)
- [getActiveLayer](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31232471)
- [getClips](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31239887)
- [moveClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31237974)
- [offsetClips](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31230792)
- [removeFromClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31233866)
- [resetClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31235942)
- [selectClipObjects](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31227959)
- [setActiveClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31228111)
- [setActiveLayer](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31229729)
- [tileClips](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31229355)