mongo.gridfs.remove.file: Remove a file from a GridFS on a MongoDB server

Description Usage Arguments See Also Examples

View source: R/gridfs.R

Description

Remove a file from a GridFS on a MongoDB server.

Usage

1
mongo.gridfs.remove.file(gridfs, remotename)

Arguments

gridfs

A (mongo.gridfs) object.

remotename

(string) The name of the file to be removed (as known within the GridFS).

See Also

mongo.gridfs,
mongo.gridfs.store.file
mongo.gridfs.store.

Examples

1
2
3
4
5
6
mongo <- mongo.create()
if (mongo.is.connected(mongo)) {
    gridfs <- mongo.gridfs.create(mongo, "grid")
    ## Not run: mongo.gridfs.remove.file(gridfs, "test.R")
    mongo.gridfs.destroy(gridfs)
}

jonkatz2/rmongodb documentation built on May 19, 2019, 7:30 p.m.