Skip to content

Month: May 2017

[Magento]Delete Log Files Programatically

$dir = Mage::getBaseDir(‘var’) ; unlink($dir.’/log/exception.log’); unlink($dir.’/log/system.log’); be careful, you can also delete other files :p

Comments closed