2019-03-03 04:08:54 +01:00
|
|
|
rm() Netscript Function
|
|
|
|
=======================
|
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
.. js:function:: rm(filename[, hostname=current server])
|
2019-03-03 04:08:54 +01:00
|
|
|
|
|
|
|
:RAM cost: 1 GB
|
2021-03-12 08:51:56 +01:00
|
|
|
:param string filename: Filename of file to remove. Must include the extension.
|
|
|
|
:param string hostname: Hostname address of the server on which to delete
|
|
|
|
the file. Optional. Defaults to current server
|
|
|
|
:returns: ``true`` if it successfully deletes the file.
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
Removes the specified file from the current server. This function works for
|
|
|
|
every file type except ``.msg`` files.
|