---
title: "removeContainer Method"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.printarea.removecontainer.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["6.15.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# removeContainer Method

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
### Callable
 
- removeContainer(index:  number ) :  void

- Removes a channel container from the print area.
  
 - example
     - ```
    // Load the editor.
    CustomersCanvas.IframeApi.loadEditor(iframe, productDefinition)
        // If the editor has been successfully loaded.
        .then(function (editor) {
            // When we get the product.
            editor.getProduct().then(function (product) {
                // Remove the fourth container.
                product.currentSurface.printAreas[0].removeContainer(3);
                // Display the remaining containers.
                console.log(product.currentSurface.printAreas[0].getContainers());
            });
        });
    ```

#### Parameters

    - ##### index: number 
  
        An index of the container to be removed (a value greater than two). Note that you cannot remove basic containers: Background, Main, or Foreground.

#### Returns void
