---
title: "revertProduct Method"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.revertproduct.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/).

# revertProduct Method

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
### Callable
 
- revertProduct(revertToinitial?:  boolean ) :  Promise &lt; void &gt;

- Cancels all changes made by a user.
   
#### Parameters

    - #####  Optional revertToinitial: boolean 
  
        Enables reverting the user changes to the initial product state. `false` allows for reverting to the print areas which were set by [setPrintAreas](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.objectmodel.surface.setprintareas.htm.md) with `updateRevertData` set to `true`. `true` allows for reverting to the initial product despite the `updateRevertData` parameter. The default value is `false`.

#### Returns Promise &lt; void &gt;
