Error log files aren't that large, but can be a nuisance. Below is a script that will delete all error_log files from your account. Copy the code below into a PHP file:
<?php
error_reporting(0);
## read through directories ##
$it = new RecursiveDirectoryIterator("$_SERVER[DOCUMENT_ROOT]");
foreach(new RecursiveIteratorIterator($it) as $file) {
## remove document root so it doesn't get searched ##
$file = preg_replace("@$_SERVER[DOCUMENT_ROOT]@", "", $file);
## get directory name and file extension ##
$extract = pathinfo($file);
$dname = ($extract['dirname']);
$ext = ($extract['basename']);
## find files ##
if ( preg_match("/error\_log/", $ext, $match) )
{ $files[] = "$dname/$ext"; }
}
## loop through files ##
asort($files);
$files = preg_replace("@//@", "/", $files);
foreach($files as $value)
{
$path = "$_SERVER[DOCUMENT_ROOT]$value";
unlink("$path");
echo "Removed: $path<br>";
}
?>
Adapted from Byron's core dump sweeper (http://bybyron.net/helio/cordump_sweeper.txt)