---
title: "History..::.addLayerRemoved Method "
canonical: https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo_History_addLayerRemoved.htm
archived: true
applies_to:
  - product: "Graphics Mill Web Controls"
---

**You’re viewing documentation for an outdated product.** Graphics Mill Web Controls is no longer part of Graphics Mill. For current design editing and rendering tools, see [Design Atoms .NET](https://customerscanvas.com/docs/on-premises/design-atoms-cs/), [Design Atoms JS](https://customerscanvas.com/docs/on-premises/design-atoms-js/), and [Design Editor](https://customerscanvas.com/docs/on-premises/design-editor/).

# History.addLayerRemoved Method 

**Applies to:** Graphics Mill Web Controls · **Archived documentation**
 
Adds the [LayerRemovedCommand](https://www.graphicsmill.com/docs/gmwc/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo_LayerRemovedCommand.htm.md) command to the history.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo](https://www.graphicsmill.com/docs/gmwc/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
function addLayerRemoved(layer, index);
```
 
### Parameters
 
 - layer
     - Type: [Aurigma.GraphicsMill.AjaxControls.VectorObjects..Layer](https://www.graphicsmill.com/docs/gmwc/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Layer.htm.md)
The layer which was removed.

 - index
     - Type: Global..Number
An index of this layer.
 
## Remarks
  
This method corresponds to [History.AddLayerRemoved(Layer, Int32)](https://www.graphicsmill.com/docs/gmwc/M_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo_History_AddLayerRemoved_2_a8c2dd5b.htm.md) server-side member.
   
## See Also

### Reference

- [History Class](https://www.graphicsmill.com/docs/gmwc/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo_History.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace](https://www.graphicsmill.com/docs/gmwc/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo.htm.md)
