mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
06a985bdf8
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
34 lines
992 B
Markdown
34 lines
992 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [killall](./bitburner.ns.killall.md)
|
|
|
|
## NS.killall() method
|
|
|
|
Terminate all scripts on a server.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
killall(host?: string, safetyguard?: boolean): boolean;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| host | string | IP or hostname of the server on which to kill all scripts. |
|
|
| safetyguard | boolean | Skips the script that calls this function |
|
|
|
|
<b>Returns:</b>
|
|
|
|
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.
|
|
|