[Reviewer: Alex] Add option to clean up logs based on suffix

Alex, can you review this change to add an option to clean up logs based on the log suffix as well as prefix
Overlong line