# Cleaning Statistics
Choose Delete stats in campaign menu or through top menu Maintenance → Delete stats.
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
Use that command to delete all the statistics:
kctl run cli-php system:delete_all_stats --truncate-all-stats