add delete by query method; add some hints