debug message added to deleteByQuery