Adding remove by query.