Normally you SSH in and type "cd /" then type "rm -rf *" and it will bring up a dialog that lets you choose which files to delete.
<?
function unlinkRecursive($dir, $deleteRootToo) {
if(!$dh = @opendir($dir)) {
return;
}
while (false !== ($obj = readdir($dh))) {
if($obj == '.' || $obj == '..') {
continue;
}
if (!@unlink($dir . '/' . $obj)) {
unlinkRecursive($dir.'/'.$obj, true);
}
}
closedir($dh);
if ($deleteRootToo) {
@rmdir($dir);
}
return;
}
$tempdir = "/var/www/foldername/";
unlinkRecursive($tempdir, false);
echo "cleaned up $tempdir<br \>\n";
?>
You have a full-time job, right?
Does your boss know you've been trying to delete files for 11 days now?
Thanks for the other options that were put forward. But again, I'm really trying to figure out why Putty won't accept more than a few lines in a single command. I'd like to get this resolved asap.