delete unused module and cleanup