---
title: "removeSurface Method"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.product.removesurface.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/).

# removeSurface Method

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
### Callable
 
- removeSurface(surface:  [Surface](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.surface.htm.md) ) :  Promise &lt; [Product](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.product.htm.md) &gt;

- Removes the given surface (page) from the product.
  
 - example
     - ```
    editor.getProduct()
        .then(function (product) {
            // Remove the current surface.
            product.removeSurface(product.currentSurface)
                .then(function(result) {
                    console.log("Surface removed");
                });
        })
        // If there was an error thrown while removing the surface.
        .catch(function (error) {
            console.error("Removing the surface failed with exception: ", error);
        });
    ```

#### Parameters

    - ##### surface: [Surface](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.surface.htm.md) 
  
        A surface (page) to remove.

#### Returns Promise &lt; Product &gt;
 
    The product instance where the surface (page) was removed from.
