def command_rm(self, system_id, *system_ids):
<EOL>system_ids = (system_id,) + system_ids<EOL>has_failed = False<EOL>for system_id in system_ids:<EOL><INDENT>try:<EOL><INDENT>system = SystemModel.create_by_id(system_id, self.environment)<EOL>controller = SystemControllerModel(system, self.environment)<EOL>controller.unmount()<EOL>system.delete(self.environment)<EOL><DEDENT>except SftpException as e:<EOL><INDENT>sys.stderr.write('<STR_LIT>' % (system_id, str(e)))<EOL>has_failed = True<EOL><DEDENT><DEDENT>if has_failed:<EOL><INDENT>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>
Removes a system by id.
        Usage: sftpman rm {system_id}..
        For a list of system ids, see `sftpman ls available`.