public void deleteDocument(String indexName, String mappingName, String id) {
        client.prepareDelete(indexName, mappingName, id).get();
    }
public void deleteDocument ( String indexName , String mappingName , String id ) { client . prepareDelete ( indexName , mappingName , id ) . get ( ) ; }
Deletes a document by its id.

@param indexName
@param mappingName
@param id