Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /
Native Methods

removeFile()

removeFile(filename)

Removes the specified file from the local file system.

The removeFile() method has the following parameter:

Parameter
Type
Description

filename

string

A filename or path to a local file.

Back

quit()

On this page