Advance Import and Export for WooCommerce DocumentationAdvance Import and Export for WooCommerce Documentation
Buy Now
View Demo
  • Getting Started

    • Introduction
    • Quick Start
    • Features
    • Installation
    • First-Time Setup
    • CSV Preparation
    • Sample Files
    • Use Cases
    • Common Mistakes
  • Tutorials

    • Google Sheets Live Sync
    • Shopify Migration
    • Daily Backup to S3
    • Multi-Store Sync
  • Using the Plugin

    • Dashboard
    • Quick Import Wizard
    • Quick Export
    • Settings
    • Compatibility
  • Import In Detail

    • Import Sources
    • Import Modes
    • Column Mapping
    • Transformations
    • Migration Presets
    • Delta Import
  • Export In Detail

    • Export Features
    • Export Destinations
    • Browser Download
    • Server Path (REST / CLI)
  • Data Types

    • Products
    • Variable Products
    • Orders
    • Customers
    • Categories & Tags
    • Coupons
    • Reviews
    • Posts
    • Pages
    • Users
    • Subscriptions
    • Bookings
    • Memberships
    • Menus
  • Automation

    • Scheduled Jobs
    • History & Logs
    • Rollback
    • Health Check
  • Cloud Service Setup

    • Google API Setup
    • Amazon S3 Setup
    • Dropbox Setup
    • Email / SMTP Setup
  • Server Configuration

    • PHP Configuration
    • Server Cron Setup
    • Image Handling
  • Developer

    • REST API
    • WP-CLI Commands
  • Compare

    • vs WP All Import
    • vs Product Import Export (WebToffee)
  • Help

    • Troubleshooting
    • FAQ
    • Glossary
    • Security
    • Changelog
Support
Buy Now
View Demo
  • Getting Started

    • Introduction
    • Quick Start
    • Features
    • Installation
    • First-Time Setup
    • CSV Preparation
    • Sample Files
    • Use Cases
    • Common Mistakes
  • Tutorials

    • Google Sheets Live Sync
    • Shopify Migration
    • Daily Backup to S3
    • Multi-Store Sync
  • Using the Plugin

    • Dashboard
    • Quick Import Wizard
    • Quick Export
    • Settings
    • Compatibility
  • Import In Detail

    • Import Sources
    • Import Modes
    • Column Mapping
    • Transformations
    • Migration Presets
    • Delta Import
  • Export In Detail

    • Export Features
    • Export Destinations
    • Browser Download
    • Server Path (REST / CLI)
  • Data Types

    • Products
    • Variable Products
    • Orders
    • Customers
    • Categories & Tags
    • Coupons
    • Reviews
    • Posts
    • Pages
    • Users
    • Subscriptions
    • Bookings
    • Memberships
    • Menus
  • Automation

    • Scheduled Jobs
    • History & Logs
    • Rollback
    • Health Check
  • Cloud Service Setup

    • Google API Setup
    • Amazon S3 Setup
    • Dropbox Setup
    • Email / SMTP Setup
  • Server Configuration

    • PHP Configuration
    • Server Cron Setup
    • Image Handling
  • Developer

    • REST API
    • WP-CLI Commands
  • Compare

    • vs WP All Import
    • vs Product Import Export (WebToffee)
  • Help

    • Troubleshooting
    • FAQ
    • Glossary
    • Security
    • Changelog
Support
  • Getting Started

    • Introduction
    • Quick Start — Your First Import in 5 Minutes
    • Features — Full Tour
    • Installation — Full Setup Guide
    • First-Time Setup — Complete Checklist
    • CSV Preparation — How to Make a Good Import File
    • Sample Files — Download Ready-to-Use Templates
    • Use Cases — "I Want To..." Quick Reference
    • Common Mistakes — Things To Watch Out For
  • Tutorials

    • Tutorial — Google Sheets Live Sync
    • Tutorial — Migrate from Shopify to WooCommerce
    • Tutorial — Daily Backup to Amazon S3
    • Tutorial — Sync Between Two WooCommerce Stores
  • Using the Plugin

    • Dashboard — What You See First
    • Quick Import Wizard — 5 Steps to Import Any File
    • Quick Export — One-Page Export Tool
    • Settings — Every Option Explained
    • Compatibility — Third-Party Plugin Support
  • Import In Detail

    • Import Sources — 11 Ways to Pull Data In
    • Import Modes — Create, Update, Delete, Replace
    • Column Mapping — Connect Your Columns to WooCommerce
    • Transformations — Change Values During Import
    • Migration Presets — Move From Shopify, Magento, BigCommerce
    • Delta Import — Skip Unchanged Rows
  • Export In Detail

    • Export Features
    • Export Destinations — Where Your Files Go
    • Export Download — One-Click Browser Download
    • Export to Server Path — WP-CLI
  • Data Types

    • Products Import — Full Field Reference
    • Variable Products — The Complete Guide
    • Orders Import — Historical Orders and Line Items
    • Customers Import — With Addresses and Notes
    • Categories and Tags Import
    • Coupons Import — Discount Codes
    • Reviews Import — Product Reviews and Ratings
    • Posts Import — WordPress Blog Posts
    • Pages Import — WordPress Pages
    • Users Import — WordPress User Accounts
    • Subscriptions Import — WooCommerce Subscriptions
    • Bookings Import — WooCommerce Bookings
    • Memberships Import — WooCommerce Memberships
    • Menus Import — WordPress Navigation Menus
  • Automation

    • Jobs — Saved and Scheduled Imports and Exports
    • History — Every Run You Have Ever Done
    • Rollback — Undo Any Import in One Click
    • Health Check — Data Integrity Checks With Auto-Fix
  • Cloud Service Setup

    • Google API Setup — Sheets, Drive, OAuth
    • Amazon S3 Setup — IAM User and Bucket Permissions
    • Dropbox Setup — API Token for Private Files
    • Email Setup — Making Notifications Actually Work
  • Server Configuration

    • PHP Configuration — Memory, Execution Time, Upload Size
    • Server Cron Setup — Reliable Scheduled Imports
    • Image Handling — Download, Resize, Watermark
  • Developer

    • REST API — Developer Reference
    • WP-CLI Commands — Command Line Automation
  • Compare

    • Advance Import and Export vs WP All Import
    • Advance Import and Export vs Product Import Export for WooCommerce
  • Help

    • Troubleshooting — Fix Common Problems
    • FAQ — Common Questions
    • Glossary — Every Term Explained
    • Security — How Your Data Is Protected
    • Changelog — What Changed

Rollback — Undo Any Import

Made a mistake? Imported the wrong file? Click Rollback. Every changed record is restored to its exact state before the import.

Why Rollback Matters

Bulk imports are scary because mistakes are big. You change 1,000 prices and realize 20 minutes later that you used the wrong column.

Most plugins have no undo. You have to restore from a database backup — which is slow, risky, and may lose other recent changes.

Our plugin takes a snapshot before every import. One click restores the snapshot. Nothing else on your site is affected.

How to Rollback

History page with Rollback actionEvery run in History shows a Rollback button in the Actions column — available for the configured retention window.

Option 1 — From the History Page

  1. Go to Webkul WC Addons → Advance Import Export → History
  2. Find the run you want to undo
  3. Click Rollback in the Actions column
  4. Confirm

A progress bar shows the rollback. Usually takes less time than the original import.

Option 2 — From the Run Details Page

  1. Click on a run in the History to open details
  2. Click Rollback at the top

Import Results step with Rollback buttonStep 5 of the Quick Import wizard also exposes a Rollback button right after a successful run.

Option 3 — Via WP-CLI

wp wkaie rollback 123 --yes

Where 123 is the run ID.

What Gets Rolled Back

For Imports

The plugin restores:

  • Product data (name, price, description, stock, etc.)
  • Custom meta fields
  • Category assignments
  • Tag assignments
  • Attribute assignments
  • SEO fields (Yoast, RankMath, AIOSEO)
  • Variation data
  • Image assignments (but images themselves stay in Media Library)

For New Records

If the import CREATED new products:

  • The new products are DELETED
  • Images uploaded with them stay in Media Library (may want to clean up manually)

For Updated Records

If the import UPDATED existing products:

  • Products are restored to their pre-import state
  • All changed fields revert

For Deleted Records

If the import DELETED products:

  • The products are RECREATED
  • All their data comes back

Selective Rollback

Don't want to undo everything? Pick specific records.

How to Use

  1. Open the run details page
  2. Click Selective Rollback
  3. A list of every changed record appears
  4. Check the ones you want to restore
  5. Leave the rest alone
  6. Click Rollback Selected

Example

You imported 1,000 products. 990 are fine but 10 have wrong prices. Don't undo everything. Select just those 10 and rollback only those.

What Does NOT Roll Back

Images in Media Library

The plugin does not delete images from the Media Library, even if the products are rolled back.

Why? Images may be used by other products, posts, or pages. Deleting could break other things.

Orders

Order imports do not support rollback. Once an order is imported, it is a live order in the system. Rollback would cause issues with inventory, reports, and payment tracking.

External Changes

If the import fired off other actions (like sending emails, webhook triggers, stock adjustments to other stores), those do NOT unwind. Only direct database changes from the import roll back.

Rollback Retention

Rollback snapshots take disk space. They are auto-deleted after a period.

Default Retention

  • 30 days for normal imports
  • 7 days for very large imports (over 100,000 rows)

Change Retention

Settings → Logs → Rollback Retention (Days).

Longer retention = more recovery safety. Shorter = less disk space.

Manual Cleanup

Free up disk space manually:

# Delete all rollback snapshots older than 14 days
wp wkaie rollback cleanup --older-than=14d

# Delete rollback snapshots for a specific job
wp wkaie rollback cleanup --job=42

Rollback Availability

Not every run can be rolled back.

When Rollback Is NOT Available

ReasonWhat to Do
Run is older than retention periodYou cannot rollback — restore from database backup
Entity does not support rollback (Orders)Manually edit the orders
Disabled in job settingsTurn it on: Job → Tab 6: Advanced → Enable Rollback
Run is still in progressWait for it to finish

The Rollback button is gray if rollback is not possible.

How Rollback Works Internally

This is technical — you don't need to know this to use rollback.

  1. Before the import runs, the plugin reads every record that will be changed
  2. Those records are serialized and saved in a wkaie_rollback table
  3. When you click Rollback:
    • The plugin reads the saved snapshots
    • Replaces current data with the snapshot data
    • Rebuilds indexes
    • Flushes caches

The process is the same speed as the original import — often faster since there's less computation.

Partial Rollback After Success

You can rollback a successful import (not just failed ones). Common use case: you imported successfully but realized a day later the data was wrong.

As long as the rollback is within the retention period, it works.

Safety Tips

Do a Test Import First

Before running a huge import, run a tiny test file (10 rows). Verify everything looks right. Then run the full import.

This is cheaper than a rollback.

Turn On Preview/Dry Run

Before the import actually writes to the database, the Preview shows exactly what will change. Use this to catch mistakes before the rollback is even needed.

Keep Recent Backups

Even with rollback, always keep recent database backups. UpdraftPlus is a popular free plugin. Set it to backup daily.

Troubleshooting

ProblemFix
Rollback button is grayRun is too old, or rollback is not supported for this entity
Rollback says "snapshot not found"Disk cleanup may have removed it. Check rollback retention
Rollback is slowIt processes the same amount of data as the original import. Be patient
Rollback completed but data is still wrongAnother import ran after this one. Check History for newer runs
I rolled back to restore a deleted product but the product is still goneTry re-running the rollback. If it still fails, check log for errors

Related Pages

  • History — Find runs to rollback
  • Quick Import Wizard — Rollback button in result step
  • Settings — Configure retention
  • WP-CLI — Rollback from command line
Prev
History — Every Run You Have Ever Done
Next
Health Check — Data Integrity Checks With Auto-Fix