# 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 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

# Deleting all the statistics

See Deleting all the statistics