/// <summary> /// Empties all expired entries that are in the StashRepo. /// Throws an exception if any deletions fail and rolls back changes. /// </summary> public void EmptyExpired() { var count = col.DeleteMany(b => b.ExpirationDate.ToUniversalTime() < DateTime.UtcNow); }