Files
bitburner-src/markdown/bitburner.ns.killall.md
Michael Ficocelli 6073964768 DARKNET: Darkweb Expansion Project & Bitnode (#2139)
This is BN15. It is a really big change; see the PR for all the details.
2026-02-03 03:40:36 -08:00

1.1 KiB

Home > bitburner > NS > killall

NS.killall() method

Terminate all scripts on a server.

Signature:

killall(host?: string, safetyGuard?: boolean): boolean;

Parameters

Parameter

Type

Description

host

string

(Optional) Hostname/IP of the server on which to kill all scripts.

safetyGuard

boolean

(Optional) Skips the script that calls this function

Returns:

boolean

True if any scripts were killed, and false otherwise.

Remarks

RAM cost: 0.5 GB

Kills all running scripts on the specified server. This function returns true if any scripts were killed, and false otherwise. In other words, it will return true if there are any scripts running on the target server. If no host is defined, it will kill all scripts, where the script is running.