Generic Application Cleaning