Managing - Abandoned Cart Data Purge Settings

Overview

The Cart Data Purge feature helps administrators automatically remove abandoned shopping cart data after a defined period of inactivity. By periodically cleaning up unused carts, organizations can reduce storage usage, improve database performance, and maintain overall system efficiency—without impacting active shoppers or completed transactions.
This feature is configured entirely from the Admin Console using global settings and runs on a scheduled basis.

Business Use Case

Administrators often encounter a high volume of shopping carts that were created but never converted into orders. Over time, these abandoned carts can:
  • Increase database storage requirements
  • Slow down system queries
  • Add unnecessary operational overhead
The Cart Data Purge feature ensures that inactive carts are automatically deleted after a configurable number of days, keeping the system clean and performant.

Prerequisites

  • Administrative access to the Admin Console
  • Permission to manage Global Settings
  • Scheduler service enabled in the environment

What Data Is Purged

Only abandoned carts that meet the inactivity criteria are removed. The purge process deletes:
  • Cart metadata
  • Cart line items
  • Associated session data (if applicable)
Important:
  • Active carts and in‑progress transactions are not affected.
  • Registered users’ active carts remain intact.
  • Referential integrity is maintained to prevent orphan records.

Cart Inactivity Criteria

A cart is considered eligible for purging when:
  • The cart has not been updated within the configured inactivity period
  • The cart has not been converted into an order

Configure Cart Data Purge Settings

Step 1: Navigate to Cart Data Purge Settings

  1. Log in to the Admin Console.
  2. Go to System Settings.
  3. Select Global Settings.
  4. In the left navigation, select Cart Data Purge Settings.

Step 2: Enable Cart Data Purge

  1. Locate Enable Cart Data Purge.
  2. Select Yes to activate the purge scheduler.
Outcome:
The system allows scheduled deletion of abandoned cart data.

Step 3: Set Cart Inactivity Period

  1. In Auto‑Purge Carts Older Than (In Days), enter the number of days a cart must remain inactive before being purged.
    • Minimum value: 1
    • Maximum value: 999
    • Default value: 30
Outcome:
Only carts older than the specified number of inactive days are eligible for deletion.

Step 4: Configure Trigger Time

  1. In Trigger Time – Cart Auto‑Purge, specify the time of day when the purge job should run.
    • Default value: 12:00:00 AM
Outcome:
The purge process runs at the specified time.

Step 5: Define Scheduler Frequency

  1. In Scheduler Frequency – Cart Auto‑Purge, select the frequency.
    • Default value: Recurring
Outcome:
The scheduler runs automatically based on the configured frequency.

Step 6: Configure Cron Expression

  1. In Cron Expression – Cart Auto‑Purge, enter a valid cron expression.
    • Default value: 0 3 * * *
Outcome:
The system schedules the purge job according to the defined cron schedule.

Step 7: Save Settings

  1. Click Save.
Outcome:
Cart Data Purge settings are saved and activated.

Logging and Audit Trail

Each purge operation is logged automatically. Logged information includes:
  • Cart ID
  • Purge timestamp
  • Number of items removed
These logs are available in All Logs for auditing and troubleshooting purposes.

Performance and Scalability Considerations

  • The purge process is optimized to minimize impact on live storefront activity.
  • Deletions are handled in a controlled manner to avoid database locks and deadlocks.
  • The system is designed to scale as cart volume increases.

Best Practices

  • Schedule the purge during off‑peak hours to minimize system load.
  • Avoid setting very low inactivity periods unless required by business policy.
  • Regularly review purge logs to ensure expected behavior.
  • Validate cron expressions carefully to prevent unintended scheduling.

Limitations and Notes

  • The purge process does not expose customer or transaction‑sensitive data.
  • Carts associated with completed orders are never deleted.
  • If Enable Cart Data Purge is set to No, no automated cleanup occurs regardless of other settings.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.