Delete by query implemented