bitburner-src/markdown/bitburner.ns.deleteserver.md

33 lines
822 B
Markdown
Raw Normal View History

2021-10-30 18:34:14 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [deleteServer](./bitburner.ns.deleteserver.md)
## NS.deleteServer() method
Deletes one of your purchased servers, which is specified by its hostname.
The hostname argument can be any data type, but it will be converted to a string. Whitespace is automatically removed from the string. This function will not delete a server that still has scripts running on it.
<b>Signature:</b>
```typescript
2021-10-30 21:46:34 +02:00
deleteServer(host: string): boolean;
2021-10-30 18:34:14 +02:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2021-10-30 21:46:34 +02:00
| host | string | Host of the server to delete. |
2021-10-30 18:34:14 +02:00
<b>Returns:</b>
boolean
True if successful, and false otherwise.
## Remarks
2.25 GB