---
title: "removeLayer"
canonical: "https://help.vicon.com/space/Shogun19/13796438/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/Shogun19/pages/13795750)
- [addToClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13795768)
- [copyClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13795842)
- [cropClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13795910)
- [deleteClipData](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13795928)
- [flatten](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796004)
- [getActiveClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796012)
- [getActiveLayer](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796014)
- [getClips](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796048)
- [moveClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796356)
- [offsetClips](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796366)
- [removeFromClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796436)
- [resetClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796460)
- [selectClipObjects](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796502)
- [setActiveClip](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796538)
- [setActiveLayer](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796540)
- [tileClips](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796766)