Title: Clears logs?
Last modified: July 28, 2018

---

# Clears logs?

 *  [walkinverse](https://wordpress.org/support/users/walkinverse/)
 * (@walkinverse)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/clears-logs/)
 * How can I clear out my logs as they are taking up way to much space? The button
   is gone and still not back. Come one!

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

 *  [nlpro](https://wordpress.org/support/users/nlpro/)
 * (@nlpro)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/clears-logs/#post-10537230)
 * Add the line below to the wp-config.php file:
 * `define(‘ITSEC_DEBUG’, true);`
 * This will add an extra menu option to the Security menu named Debug.
    Navigate
   to the Security->Debug menu option.
 * Copy/paste the info displayed under the **Scheduler** section into this topic.
 *  [jasonb4u2](https://wordpress.org/support/users/jasonb4u2/)
 * (@jasonb4u2)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/clears-logs/#post-10538228)
 * [@nlpro](https://wordpress.org/support/users/nlpro/), I tried yr code, does not
   make a menu item anywhere. If it did for hows about a screen snap of its location
 * Nothing extra here: [http://prntscr.com/kchxyi](http://prntscr.com/kchxyi)
 * So many people have asked this question yet iThemes keeps ignoring the fact we
   need a CLEAR LOGS button
    -  This reply was modified 7 years, 10 months ago by [jasonb4u2](https://wordpress.org/support/users/jasonb4u2/).
    -  This reply was modified 7 years, 10 months ago by [jasonb4u2](https://wordpress.org/support/users/jasonb4u2/).
 *  [nlpro](https://wordpress.org/support/users/nlpro/)
 * (@nlpro)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/clears-logs/#post-10538285)
 * Judging from the screenshot it looks like you are running the premium (Pro) plugin.
 * Make sure to be running the 5.3.0 or newer release of the Pro plugin.
    Preferably
   the latest release (5.4.1 at the time of writing this post).
 * Anything older than the 5.3.0 Pro (or 7.0.2 free) release does not include the
   Debug menu, no matter what you do.
 *  [nlpro](https://wordpress.org/support/users/nlpro/)
 * (@nlpro)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/clears-logs/#post-10540746)
 * Hmm, there seems to be incorrect quotes in my first post of this topic. Copy/
   paste from that post to your wp-config.php file will probably not work. So here
   is a new attempt to get it right:
 * `define('ITSEC_DEBUG', true);`
    -  This reply was modified 7 years, 10 months ago by [nlpro](https://wordpress.org/support/users/nlpro/).
 *  [xberg](https://wordpress.org/support/users/xberg/)
 * (@xberg)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/clears-logs/#post-10661970)
 * Completely agree that the clear log button should be there by default. I checked
   my database and the log table was taking 1 GB!!! This is insane.
 *  [nlpro](https://wordpress.org/support/users/nlpro/)
 * (@nlpro)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/clears-logs/#post-10662199)
 * If there are older entries in the Logs page than expected based upon the “**Days
   to Keep Database Logs**” setting value in the **General Settings** module, follow
   the procedure below.
 * Add the line below to the wp-config.php file:
 * `define('ITSEC_DEBUG', true);`
 * This will add an extra menu option to the Security menu named Debug.
    Navigate
   to the Security->Debug menu option.
 * 1. Copy/paste the ### iThemes Security ### section from the **System Info** window
   into this topic.
 * 2. What’s displayed under **Scheduler** ?
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [7 years, 8 months ago](https://wordpress.org/support/topic/clears-logs/#post-10779019)
 * [@walkinverse](https://wordpress.org/support/users/walkinverse/) I’ve removed
   your duplicate and shouty topic. Please do not create duplicate topics in these
   forums.
 * A solution was presented in this topic already.
 *  Thread Starter [walkinverse](https://wordpress.org/support/users/walkinverse/)
 * (@walkinverse)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/clears-logs/#post-10813385)
 * [@jdembowski](https://wordpress.org/support/users/jdembowski/) The solution does
   work. I added to wp-config and I still have NO WAY to delete the logs. I did 
   read the post, and I did follow it and it does not work. My logs just keep appending
   and I need to delete them.
 * I clicked RUN and the logs are still not purged. it is not working.
 * [@nlpro](https://wordpress.org/support/users/nlpro/) I did follow your instructions
   and it still does not allow me to delete the logs even if I click RUN on all 
   three which I have several times.
 * [https://www.dropbox.com/s/5b8luadh7p496sf/Screenshot%202018-10-24%2016.02.41.png?dl=0](https://www.dropbox.com/s/5b8luadh7p496sf/Screenshot%202018-10-24%2016.02.41.png?dl=0)
    -  This reply was modified 7 years, 7 months ago by [walkinverse](https://wordpress.org/support/users/walkinverse/).
 *  [jetxpert](https://wordpress.org/support/users/jetxpert/)
 * (@jetxpert)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/clears-logs/#post-10853879)
 * All,
 * Closing the loop. Click below for more info on this topic and best solution so
   far.
 * [https://wordpress.org/support/topic/clear-logs-button-bring-it-back/](https://wordpress.org/support/topic/clear-logs-button-bring-it-back/)
 * Cheers!

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

The topic ‘Clears logs?’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)
 * [log](https://wordpress.org/support/topic-tag/log/)
 * [Logs](https://wordpress.org/support/topic-tag/logs/)

 * 9 replies
 * 6 participants
 * Last reply from: [jetxpert](https://wordpress.org/support/users/jetxpert/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/clears-logs/#post-10853879)
 * Status: not resolved