mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
20 lines
458 B
ReStructuredText
20 lines
458 B
ReStructuredText
rm() Netscript Function
|
|
==============================
|
|
|
|
.. js:function:: rm(Filename [,hostname = current hostname])
|
|
|
|
:RAM cost: 0 GB
|
|
|
|
:param string Filename: Name of the file to be deleted.
|
|
:param string hostname: Hostname of the target server.
|
|
|
|
Delete a file on the given server.
|
|
|
|
.. warning!:: There is no safetychecks or recycling bins. Deleted files are lost.
|
|
|
|
Examples:
|
|
|
|
.. code-block:: javascript
|
|
|
|
ns.rm("foo.js");
|