/// <summary> /// Use the Drop or DropAsync methods to drop an entire GridFS bucket at once. /// Note /// The “fs.files” collection will be dropped first, followed by the “fs.chunks” collection. /// This is the fastest way to delete all files stored in a GridFS bucket at once. /// </summary> /// <param name="id"></param> public void DroppingFiles() { IGridFSBucket bucket = GetGridFSBucket(); bucket.Drop(); }
private void DropBucket(IGridFSBucket bucket) { bucket.Drop(); }