mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
doc function updates and additions (#387)
This commit is contained in:
19
doc/source/netscript/basicfunctions/rm.rst
Normal file
19
doc/source/netscript/basicfunctions/rm.rst
Normal file
@@ -0,0 +1,19 @@
|
||||
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");
|
||||
Reference in New Issue
Block a user