In this example, I wanted to delete all the messages that showed up as delivery temporarily suspended from the mail queue.
mailq | tail +2 | awk 'BEGIN {RS=""} /delivery temporarily suspended/ {print $1}' | tr -d '*!' | postsuper -d -
Note: This command should be entered all on one line.