bitburner-src/doc/source/netscript/basicfunctions/scriptKill.rst
2023-01-06 14:43:09 +02:00

19 lines
550 B
ReStructuredText

scriptKill() Netscript Function
===============================
.. js:function:: scriptKill(scriptname, hostname)
:RAM cost: 1 GB
:param string scriptname: Filename of script to kill. case-sensitive.
:param string hostname: Hostname of target server.
:returns: ``true`` if any scripts were killed.
Kills all scripts with the specified filename on the target server specified
by ``hostname``, regardless of arguments.
Example:
.. code-block:: javascript
ns.scriptKill("demo.js", "home"); // returns: true