added option to remove logs