mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-17 21:23:54 +01:00
31 lines
521 B
Markdown
31 lines
521 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [clear](./bitburner.ns.clear.md)
|
|
|
|
## NS.clear() method
|
|
|
|
Clear data from a file.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
clear(handle: string): void;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| handle | string | Text file to clear. |
|
|
|
|
<b>Returns:</b>
|
|
|
|
void
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0 GB
|
|
|
|
Delete all data from that text file.
|
|
|