Remove the matched item from the $tempQueue list.