# Cleaning statistics
Choose Delete statistics in editing campaign menu or at the top menu Maintenance → Delete statistics.
WARNING
All deleted data cannot be restored.
# Automatic data cleaning
To turn on automatic data cleaning, set Stats store term in the settings.
# Using terminal
Use that command to delete statistics until the specific date:
kctl run cli-php system:delete_all_stats --click-remove-till-date YYYY-MM-DD
1
Use that command to delete all the statistics:
kctl run cli-php system:delete_all_stats --truncate-all-stats
1