# How to Deactivate a Machine Machines are Linux and Windows virtual machines with persistent storage, GPU options, and free unlimited bandwidth. They’re designed for high-performance computing (HPC) workloads. Deactivating a Paperspace machine permanently removes the machine, its files, and its snapshots from your Paperspace account. You can deactivate a machine using the [Paperspace console](https://console.paperspace.com), [Paperspace API](https://docs.digitalocean.com/reference/paperspace/api-reference/index.html.md), or [Paperspace CLI](https://docs.digitalocean.com/reference/paperspace/pspace/index.html.md). To save files from your machine before deactivation, [transfer the files to another machine or local device](https://docs.digitalocean.com/products/paperspace/machines/how-to/transfer-files/index.html.md). You can also [create a custom template](https://docs.digitalocean.com/products/paperspace/machines/how-to/manage-custom-template/index.html.md) of your machine, which lets you create a new machine with the same data and configuration in the future. Before deactivating your machine, you need to [turn off your machine](https://docs.digitalocean.com/products/paperspace/machines/getting-started/quickstart/index.html.md#shutdown-or-restart-machines). ## Deactivate a Machine Using the Paperspace Console To deactivate your machine, go to the [Paperspace console](https://console.paperspace.com), in the top-right corner, click the drop-down menu, select **CORE**, then click the **Machines** tab. In the **Machines** section, click the machine you want to deactivate. On the machine’s overview page, in the top-right corner, click the **Settings** tab. At the bottom of the **Settings** page, in the **Deactivate machine** section, click **DEACTIVATE** to open the **Deactivate machine** window. In the **Deactivate machine** window, click **DEACTIVATE** if you still want to deactivate your machine. Once your machine is deactivated, you’re redirected to the **Machines** tab. ## Deactivate a Machine Using the Paperspace API When deactivating a machine using the Paperspace API, you need to provide the ID of the machine you want to delete. ## How to Deactivate a Machine Using the Paperspace API 1. [Create an API key to authenticate your requests to your Paperspace account](https://docs.digitalocean.com/reference/paperspace/api-keys/index.html.md) and save it for use. 2. Send a DELETE request to `https://api.paperspace.com/v1/machines/{machine-id}`. ```bash curl -X DELETE \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $PAPERSPACE_API_KEY" \ -d '{"id":"psm9u09bwu5i"}' \ "https://api.paperspace.com/v1/machines/psm9u09bwu5i" ``` ## Deactivate a Machine Using the Paperspace CLI When deactivating a machine using the Paperspace CLI, you need to provide the ID of the machine you want to delete. ## How to Deactivate a Machine Using the Paperspace CLI 1. [Install `pspace`](https://docs.digitalocean.com/reference/paperspace/pspace/install/index.html.md), the Paperspace command-line tool. 2. [Create an API key to authenticate your requests to your Paperspace account](https://docs.digitalocean.com/reference/paperspace/api-keys/index.html.md) and save it for use with `pspace`. 3. Use the API key to grant `pspace` access to your Paperspace account. ```bash pspace login --api-key your-api-key ``` 4. Finally, run `pspace machine delete `. ```bash pspace machine delete psm9u09bwu5i ```