Function: rm()

rm(path): Promise<void>

Removes a file or directory at the specified path.

Parameters

path

string

The path of the file or directory to be removed.

Returns

Promise<void>

A promise that resolves when the file or directory is successfully removed.