Method DeleteAsync
DeleteAsync(BsonValue, CancellationToken)
Deletes a file from GridFS.
public Task DeleteAsync(BsonValue id, CancellationToken cancellationToken = default)
Parameters
id
BsonValueThe file id.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A Task.