[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [renamePurchasedServer](./bitburner.ns.renamepurchasedserver.md) ## NS.renamePurchasedServer() method Rename a purchased server. Signature: ```typescript renamePurchasedServer(hostname: string, newName: string): boolean; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | hostname | string | current server hostname | | newName | string | new server hostname | Returns: boolean True if the upgrade succeeded. ## Remarks RAM cost: 2.00 GB