Delete a bunch of taxonomy terms

del_tax.php
<?php
$tids = taxonomy_get_term_by_name("Withdrawn Prior to R&C Hearing");
// Drop the first one (this has the initiatives attached to it).
array_shift($tids);
dpm(array_values($tids));
$all = array();
foreach (array_values($tids) as $tax) {
  print "deleting $tax->tid";
  $all[] = $tax->tid;
  taxonomy_term_delete($tax->tid);
}
// OR to delete blank taxonomy terms (blank session)
$tids = taxonomy_get_term_by_name("");
// Drop the first one (this has the initiatives attached to it).
array_shift($tids);
dpm(array_values($tids));
$all = array();
foreach (array_values($tids) as $tax) {
  print "deleting $tax->tid";
  $all[] = $tax->tid;
  taxonomy_term_delete($tax->tid);
}