rm
Syntax
rm(filename)
Arguments
filename is the path and name of the file to be deleted.
Details
Delete a file specified by path and name. It must be executed by a logged-in user.
Examples
$ files("d:/test");
filename |
isDir |
fileSize |
lastAccessed |
lastModified |
---|---|---|---|---|
abc.txt |
0 |
15 |
1496650187443 |
1496647459999 |
dir1 |
1 |
0 |
1496650004836 |
1496650004836 |
dir2 |
1 |
0 |
1496650002210 |
1496650002210 |
dir3 |
1 |
0 |
1496649999597 |
1496649999597 |
$ rm("d:/test/abc.txt");
$ // delete file abc.txt
$ files("d:/test");
filename |
isDir |
fileSize |
lastAccessed |
lastModified |
---|---|---|---|---|
dir1 |
1 |
0 |
1496650004836 |
1496650004836 |
dir2 |
1 |
0 |
1496650002210 |
1496650002210 |
dir3 |
1 |
0 |
1496649999597 |
1496649999597 |