Table of Contents

Method DeleteAsync

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

DeleteAsync(TFileId, CancellationToken)

Deletes a file from GridFS.

Task DeleteAsync(TFileId id, CancellationToken cancellationToken = default)

Parameters

id TFileId

The file id.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

A Task.