Remove Query object