tmsh::delete

Description

Mirrors the tmsh delete command. Accepts the same components, object identifiers, and properties that the tmsh command delete accepts.

Syntax

tmsh::delete [args...]

Examples

proc script::run {} {
   if { $tmsh::argc < 2 } {
       puts "Requires one argument: <Poolname beginning string>"
   } else {
       set poolstring [lindex $tmsh::argv 1]
       set len [expr { [string length $poolstring] - 1 }]
   }
   foreach {pool} [tmsh::get_config \ltm pool] {
       if { [string range [tmsh::get_name $pool] 0 $len] equals $poolstring } {
           tmsh::delete ltm pool [tmsh::get_name $pool]
       }
   }
}