class VitamMongoRepository implements VitamRepository {

    @Override
    public void remove(String id, Integer tenant) throws DatabaseException {
        ParametersChecker.checkParameter(ALL_PARAMS_REQUIRED, id);
        DeleteResult delete = collection.deleteOne(new BasicDBObject(ID, id));
        long count = delete.getDeletedCount();
        if (count == 0) {
            LOGGER.error(String.format("Document %s is not deleted", id));
            throw new DatabaseException(String.format("Document %s is not deleted", id));
        }
    }

    public  VitamMongoRepository(MongoCollection<Document> collection);

}