mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
19 lines
457 B
ReStructuredText
19 lines
457 B
ReStructuredText
mv() 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"); |