> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: resetVariantData(productId: string) # Method package: wixStoresBackend # Method menu location: wixStoresBackend --> resetVariantData # Method Link: https://dev.wix.com/docs/velo/apis/wix-stores-backend/reset-variant-data.md # Method Description: Resets the data (such as the price and the weight) of all variants for a given product to their default values. The `resetVariantData()` function returns a Promise that resolves when a product's variants have been reset. > **Note:** The `Manage Variants` field for the product must be set to true to reset variant data. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Reset the data of a variant to their default values ```javascript import wixStoresBackend from 'wix-stores-backend'; export function resetVariantData(productId) { wixStoresBackend.resetVariantData(productId) .then(() => { // product variants have been reset to original values }) .catch((err) => { // there was an error resetting the product variants }); } ``` ---