Delete Abandoned Carts
Automatically remove carts that have been inactive for extended periods
Overview
This task identifies and permanently deletes carts that have not been modified for over 60 days and have no active expiration date. It helps maintain system performance by removing stale cart data from both the search index and repository.
Identifier
| Property | Value |
|---|---|
| Implementation Type | DeleteAbandonedCartScheduledTask |
| Group | Carts |
| Type | Delta |
When to Use
Enable this task when you need:
- Automatic cleanup of abandoned shopping carts
- Maintenance of search index performance
- Reduction of storage costs from stale data
- Compliance with data retention policies
Configuration Properties
This task has no configurable properties. Carts are deleted when:
- Modified date is more than 60 days ago
- No active expiration date set for the future
Behavior
What It Does
- Queries for carts that have not been modified in over 60 days
- Excludes carts that have a future expiration date set
- Deletes matching carts from the Elasticsearch search index
- Removes the cart records from the repository
- Reports the number of carts deleted
Prerequisites
- Cart search service must be operational
- Cart repository must be accessible
Side Effects
- Permanently removes cart data (this is irreversible)
- Reduces search index size
- Frees up storage space
Example Configuration
Recommended Schedule
Run daily during off-peak hours (0 2 * * * - 2 AM daily). This task processes carts in batches of 500 and can handle large volumes efficiently.
Related Tasks
- Convert Authorized Carts to Orders - Convert eligible carts before cleanup
