complete search and clean up files