complete the logic for uninstall command
remove useless require