# Cleaning statistics

Choose Delete statistics in editing campaign menu or at the top menu Maintenance → Delete statistics.


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

# Deleting all the statistics

See Deleting all the statistics