def remove_pool(arg, opts, shell_opts):

    remove_confirmed = shell_opts.force

    res = Pool.list({ 'name': arg })
    if len(res) < 1:
        print >> sys.stderr, "No pool with name '%s' found." % arg
        sys.exit(1)

    p = res[0]

    if not remove_confirmed:
        res = raw_input("Do you really want to remove the pool '%s'? [y/N]: " % p.name)

        if res == 'y':
            remove_confirmed = True
        else:
            print "Operation canceled."

    if remove_confirmed:
        p.remove()
        print "Pool '%s' removed." % p.name
Remove pool
dataset/ETHPy150Open SpriteLink/NIPAP/nipap-cli/nipap_cli/nipap_cli.py/remove_pool