rmongodb (version 1.8.0)

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

Description

Remove a file from a GridFS on a MongoDB server.

Usage

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

Run this code
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)
}

Run the code above in your browser using DataLab