bitburner-src/doc/source/netscript/basicfunctions/rm.rst

20 lines
458 B
ReStructuredText
Raw Normal View History

2023-06-09 10:34:51 +02:00
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
2023-06-09 10:34:51 +02:00
ns.rm("foo.js");