def remove_pool(arg, opts, shell_opts):
remove_confirmed = shell_opts.force<EOL>res = Pool.list({ '<STR_LIT:name>': arg })<EOL>if len(res) < <NUM_LIT:1>:<EOL><INDENT>print("<STR_LIT>" % arg, file=sys.stderr)<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>p = res[<NUM_LIT:0>]<EOL>if not remove_confirmed:<EOL><INDENT>res = input("<STR_LIT>" % p.name)<EOL>if res == '<STR_LIT:y>':<EOL><INDENT>remove_confirmed = True<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT><DEDENT>if remove_confirmed:<EOL><INDENT>p.remove()<EOL>print("<STR_LIT>" % p.name)<EOL><DEDENT>
Remove pool