Commands 

order:cleanup 

The order:cleanup command requires the date before which all orders are to be set to deleted (cutOffDate) as an argument. The format for this date only accepts the format YYYY-MM-DD.

# Remove all orders created before 1st January 2025
vendor/bin/typo3 order:cleanup 2025-01-01
Copied!

The DataHandler is then used to process all orders before this date.

Restrictions:
No special cases such as belonging to a frontend user are taken into account. There is no interaction with the user of the command. No execution via the scheduler is planned.