Skip to content

[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

Share

Comments are closed.