Clean expired customer prices

Removes customer-specific prices that have exceeded their validity period.

bin/console b2b:clean:expired-customer-prices [--force]

Automated cleanup of expired customer pricing records based on validUntil date field.

Options:

  • --force, -f - Skip confirmation prompt (useful for cron jobs)

Safety Features:

  • Requires database backup confirmation (unless --force is used)

  • Only deletes records where validUntil < current_date

Cron Job Example

# Run daily at 2 AM
0 2 * * * cd /var/www/shopware && php bin/console b2b:clean:expired-customer-prices --force

Last updated

Was this helpful?