vertx/src/main/java/eu/internetofus/common/vertx/Repository.java
/**
   * Delete some document.
   *
   * @param collectionName of the collections that contains the model to delete.
   * @param query          to to match the documents to delete.
   *
   * @return the future result of the delete action.
   */
Delete some document.
@param collectionName of the collections that contains the model to delete.

@return the future result of the delete action.
Delete some document . @param collectionName of the collections that contains the model to delete . @return the future result of the delete action .
protected Future<Void> deleteDocuments(final String collectionName, final JsonObject query) {
    return this.pool.removeDocuments(collectionName, query).compose(result -> {
      if (result.getRemovedCount() < 1) {
        return Future.failedFuture("Not found document to delete");
      } else {
        return Future.succeededFuture();
      }
    });
  }
protected Future < Void > deleteDocuments ( final String collectionName , final JsonObject query ) { return this . pool . removeDocuments ( collectionName , query ) . compose ( result -> { if ( result . getRemovedCount ( ) < 1 ) { return Future . failedFuture ( "Not found document to delete" ) ; } else { return Future . succeededFuture ( ) ; } } ) ; }
Delete some document.
Delete some document .