Added delete for queries