Tagger Script: Loop through existing tags

Hi,

In a tagger script how could I loop through available tags checking for it’s contents? When tags are not standard.
The $in() function is what I want to create a series of checks and delete the ones that matches.

so the code would look something like:

$while(
  $lt(%_loop_count%
  ,$counttags()$noop(return the n# of tags in the file))
  ,$if($in(%current_tag%,Match),$delete(current_tag)))

Also is there a way to have case-insensitive $in()? not important.

Thanks in advance.