/** * Deletes all documents from this repository. * * @param maxTime max time for the operation * @param timeUnit the time unit for the maxTime value */ public void deleteAll(final long maxTime, final TimeUnit timeUnit) { collectionWithWriteTimeout(maxTime, timeUnit).deleteMany(matchAll()); }
/** * Deletes all documents from this repository. * @param maxTime max time for the operation * @param timeUnit the time unit for the maxTime value */ public void deleteAll(final long maxTime, final TimeUnit timeUnit) { collectionWithWriteTimeout(maxTime, timeUnit).deleteMany(matchAll()); }
public void deleteAll() { collection().deleteMany(matchAll()); }