def pool_attr_remove(arg, opts, shell_opts):
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>for key in opts.get('<STR_LIT>', []):<EOL><INDENT>if key not in p.avps:<EOL><INDENT>print("<STR_LIT>" % key, file=sys.stderr)<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>del p.avps[key]<EOL><DEDENT>try:<EOL><INDENT>p.save()<EOL><DEDENT>except NipapError as exc:<EOL><INDENT>print("<STR_LIT>" % str(exc), file=sys.stderr)<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>print("<STR_LIT>" % p.name)<EOL>
Remove attributes from a prefix