added deleteByQuery support as a custom command