Table of Contents

Method Delete

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

Delete(IMongoQuery)

Deletes GridFS files.

public void Delete(IMongoQuery query)

Parameters

query IMongoQuery

A query that specifies the GridFS files to delete.

Delete(string)

Deletes all versions of a GridFS file.

public void Delete(string remoteFileName)

Parameters

remoteFileName string

The remote file name.