Implemented delete using query for elastic.