Table of Contents

Method DeleteAsync

Namespace
MongoDB.Driver.GridFS
Assembly
MongoDB.Driver.dll

DeleteAsync(BsonValue, CancellationToken)

Deletes a file from GridFS.

public Task DeleteAsync(BsonValue id, CancellationToken cancellationToken = default)

Parameters

id BsonValue

The file id.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

A Task.