In this lab we will review, line-by-line an example script that has been created to allow deletion of a pool using the command-line.
delete_pool.py
in Notepad++pool = mgmt.tm.ltm.pools.pool.load(partition=args.partition, name=args.pool\_name)
pool.delete()
print "Deleted pool %s" % pool\_path
These lines should be fairly self-explanatory at this point. First we load the pool and the we delete() it and print that we have done so.