Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
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