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

> Macro (scroll-tablelayout)

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

### Arguments

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

### Flags

None

## Return value

void

> Macro (scroll-pagebreak)

## 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/ShogunPost122/pages/1416135359)
- [addToClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416134714)
- [copyClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135734)
- [cropClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416138050)
- [deleteClipData](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416134819)
- [flatten](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135841)
- [getActiveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416137609)
- [getActiveLayer](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416136000)
- [getClips](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135972)
- [moveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135217)
- [offsetClips](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416137317)
- [removeFromClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135453)
- [resetClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416134707)
- [selectClipObjects](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416136585)
- [setActiveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135576)
- [setActiveLayer](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135080)
- [tileClips](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost122/pages/1416135928)