Title: Automatically delete old data
Last modified: August 30, 2016

---

# Automatically delete old data

 *  Resolved [Hetman](https://wordpress.org/support/users/tomeh/)
 * (@tomeh)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/automatically-delete-old-data/)
 * Hello, plug alone can delete old records if set popularity for 7 days to what
   was old was deleted from the database and it is not occupied
 * [https://wordpress.org/plugins/top-10/](https://wordpress.org/plugins/top-10/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [WebberZone](https://wordpress.org/support/users/webberzone/)
 * (@webberzone)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/automatically-delete-old-data/#post-6547061)
 * If you turn on the maintenance mode, any data in the daily tables older than 
   90 days is automatically deleted.
 *  Thread Starter [Hetman](https://wordpress.org/support/users/tomeh/)
 * (@tomeh)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/automatically-delete-old-data/#post-6547116)
 * Thanks for the answer, and you can not adjust to erase the after 30 days?
 *  Plugin Author [WebberZone](https://wordpress.org/support/users/webberzone/)
 * (@webberzone)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/automatically-delete-old-data/#post-6547133)
 * You can’t do this automatically currently. You will need to edit the top-10.php
   file to change this. Is there a reason you don’t want to keep the data for 90
   days?
 * Line to edit:
    [https://github.com/WebberZone/top-10/blob/master/top-10.php#L1050](https://github.com/WebberZone/top-10/blob/master/top-10.php#L1050)
 *  Thread Starter [Hetman](https://wordpress.org/support/users/tomeh/)
 * (@tomeh)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/automatically-delete-old-data/#post-6547142)
 * I have a large site – a few million hits so everyone even the smallest addition
   they generate long records in the database much he charges
 *  Plugin Author [WebberZone](https://wordpress.org/support/users/webberzone/)
 * (@webberzone)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/automatically-delete-old-data/#post-6547165)
 * For now, you will can change this line and change 90 to 30:
 *     ```
       $from_date = strtotime( '-30 DAY' , $current_time );
       ```
   
 *  Thread Starter [Hetman](https://wordpress.org/support/users/tomeh/)
 * (@tomeh)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/automatically-delete-old-data/#post-6547195)
 * We thank you for your help. Best wishes.
 *  Plugin Author [WebberZone](https://wordpress.org/support/users/webberzone/)
 * (@webberzone)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/automatically-delete-old-data/#post-6547222)
 * You’re welcome.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Automatically delete old data’ is closed to new replies.

 * ![](https://ps.w.org/top-10/assets/icon-256x256.png?rev=2986432)
 * [WebberZone Top 10 — Popular Posts](https://wordpress.org/plugins/top-10/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/top-10/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/top-10/)
 * [Active Topics](https://wordpress.org/support/plugin/top-10/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/top-10/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/top-10/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [WebberZone](https://wordpress.org/support/users/webberzone/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/automatically-delete-old-data/#post-6547222)
 * Status: resolved