# Cleaning Statistics
Choose Delete stats in campaign menu or through top menu Maintenance → Delete stats.
WARNING
All deleted data cannot be restored.
# Automatic data cleaning
To enable automatic data cleaning, set Stats store term in the settings.
# Using terminal
Use that command to delete statistics until the specific date:
cd /var/www/keitaro && sudo -u keitaro php bin/cli.php system:delete_all_stats --click-remove-till-date YYYY-MM-DD
1
Use that command to delete all the statistics:
cd /var/www/keitaro && sudo -u keitaro php bin/cli.php system:delete_all_stats --truncate-all-stats
1