dont know how to use awk to print every word from a whole string : i declared variable (string) containing k names of queues i want to delete.

how can i "loop" through the string and delete each queue? 

I'm having trouble with the awk command.

thanks a lot!