2022-10-21 17:16:00 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [rm](./bitburner.ns.rm.md)
|
|
|
|
|
|
|
|
## NS.rm() method
|
|
|
|
|
|
|
|
Delete a file.
|
|
|
|
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
rm(name: string, host?: string): boolean;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| name | string | Filename of file to remove. Must include the extension. |
|
2022-11-20 18:07:22 +01:00
|
|
|
| host | string | Hostname of the server on which to delete the file. Optional. Defaults to current server. |
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
boolean
|
|
|
|
|
|
|
|
True if it successfully deletes the file, and false otherwise.
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 1 GB
|
|
|
|
|
|
|
|
Removes the specified file from the current server. This function works for every file type except message (.msg) files.
|
|
|
|
|