Title: TIElogremover
Author: TIEro
Published: <strong>13. Septembar 2013.</strong>
Last modified: 13. Novembar 2013.

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/tielogremover.svg)

# TIElogremover

 By [TIEro](https://profiles.wordpress.org/tiero/)

[Download](https://downloads.wordpress.org/plugin/tielogremover.1.0.1.zip)

 * [Details](https://me.wordpress.org/plugins/tielogremover/#description)
 * [Reviews](https://me.wordpress.org/plugins/tielogremover/#reviews)
 *  [Installation](https://me.wordpress.org/plugins/tielogremover/#installation)
 * [Development](https://me.wordpress.org/plugins/tielogremover/#developers)

 [Support](https://wordpress.org/support/plugin/tielogremover/)

## Description

_This plugin is now available as part of [TIEtools](https://wordpress.org/plugins/tietools-automatic-maintenance-kit/),
which also includes post expiry and duplicate post control._

An extremely simple plugin which removes accumulated error log files from your web
space. It is VERY important to note that the plugin does no checking or any complex
stuff: it just removes error logs. Please read the FAQ before you activate this 
plugin.

## Installation

 1. Upload the plugin folder and its contents to the /wp-content/plugins directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

Alternatively, use the built-in ‘Add New’ option on the Plugins menu to install.

## FAQ

  OMG your stoopid plugin deleted all my filez!

The FAQ explains what the plugin does. You use it at your own risk, especially if
you fiddle with the filenames and stuff. Don’t blame me if you change something 
and delete vital files or if you run the plugin and need the error logs it removes.

In short (and blindingly obvious): do not activate this plugin unless you are happy
with it deleting your error logs, permanently and silently.

  Is this plugin actively maintained?

Yes, it is, though there isn’t really anything to maintain.

  What does it do?

The plugin automatically deletes error log files from your web space, at most once
per day.

  What is in the error logs?

Every error generated on your web server, by WP or whatever other apps you run. 
The error logs are absolutely critical in helping you spot what’s going wrong and
working out how to fix it.

  Isn’t it incredibly dumb and dangerous to delete log files?

Yes.

  So why would I want to delete them?

Because they can get very big and are often full of relatively useless rubbish generated
by mismatches in current versions of software running on your space. For example,
an application can cause thousands of „php warning“ messages: while these are interesting,
the only way to fix them may be to upgrade another piece of software (cPanel or 
the php version or something). You may not wish to or be able to do this, so you
end up with hundreds of megs of effectively pointless error logging.

If you own a lot of web sites, it’s also incredibly annoying to have to go through
them all and manually remove error logs created by simple things like those php 
warning error messages, especially when they don’t affect the operation of the site.
This is doubly true if you run automated or static sites, where nothing ever goes
wrong but your space fills up with junk error reporting.

If you use a VPS or dedicated server for your sites, checking and removing log files
can save a ton of space. They can quite easily grow to ridiculous sizes (I’ve had
one that hit 2Gb with nothing useful to report).

  What does the plugin delete?

By default, the plugin works for WordPress running on a GoDaddy VPS using Linux.
In other words, it looks for specific files in specific places. Specifically, it
looks for files called „error_log“ in the root of the WP install, in the wp-admin
directory and in the wp-content directory. Three files in all.

  Can I change what it deletes?

Absolutely, if you don’t mind editing a plugin file. Look in the php and change 
the do_tielog_remove_logs function. All the files to delete are listed there, starting
from the ABSPATH (the root of the WP install). It’s pretty obvious how it works,
so you can tailor it to your server setup.

  It’s not deleting my log files

You may have a custom ABSPATH definition. By default, it’s set in your wp-config
file with a trailing slash. If you have changed that, the plugin won’t work – you
can either put the trailing slash back on ABSPATH or add a leading slash to each
deletion line in the plugin, whichever suits your need. Also check the slash direction,
especially if you’re running on a local Windows server install.

  How often does the wp_cron job run?

At most once per day. You can change this in the do_tielog_activate function: switch
the value ‘daily’ to whatever suits you (and will work with wp_cron). Personally,
I find leaving it on daily works best: it gives me time to switch off the plugin
if there’s a problem on a site and still have logs available, unless I’m really 
unlucky.

  Is there any documentation?

You’re reading it. You can visit the plugin homepage at http://setupmyvps.com/tielogremover
for thoughts and comments, but there really isn’t much to say about such a basic,
simple plugin.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“TIElogremover” is open source software. The following people have contributed to
this plugin.

Contributors

 *   [ TIEro ](https://profiles.wordpress.org/tiero/)

[Translate “TIElogremover” into your language.](https://translate.wordpress.org/projects/wp-plugins/tielogremover)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/tielogremover/), check
out the [SVN repository](https://plugins.svn.wordpress.org/tielogremover/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/tielogremover/) 
by [RSS](https://plugins.trac.wordpress.org/log/tielogremover/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

Multiple text corrections, additions and clarifications.

#### 1.0

Original working release.

## Meta

 *  Version **1.0.1**
 *  Last updated **12 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **3.7.41**
 *  Language
 * [English (US)](https://wordpress.org/plugins/tielogremover/)
 * Tags
 * [clean](https://me.wordpress.org/plugins/tags/clean/)[delete](https://me.wordpress.org/plugins/tags/delete/)
   [file](https://me.wordpress.org/plugins/tags/file/)[log](https://me.wordpress.org/plugins/tags/log/)
   [remove](https://me.wordpress.org/plugins/tags/remove/)
 *  [Advanced View](https://me.wordpress.org/plugins/tielogremover/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/tielogremover/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/tielogremover/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/tielogremover/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/tielogremover/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/tielogremover/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/tielogremover/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/tielogremover/reviews/)

## Contributors

 *   [ TIEro ](https://profiles.wordpress.org/tiero/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/tielogremover/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://www.setupmyvps.com/tielogremover)