[Home](./index.md) > [bitburner](./bitburner.md) > [NetscriptPort](./bitburner.netscriptport.md) > [clear](./bitburner.netscriptport.clear.md) ## NetscriptPort.clear() method Empties all data from the port. Signature: ```typescript clear(): void; ``` Returns: void ## Remarks RAM cost: 0 GB