Use existing variable in api to clear a queue