--- title: "Delete a VM" description: "Delete a TIR Virtual Machine and its disk for good, keep its public IP as a reserved IP, and see what stays behind." content_type: "how-to" product: "tir-vm" platform: "TIR" url: "/tir/tir-vm/how-to/delete-a-vm/" topic: ["power-and-lifecycle"] --- # Delete a VM Delete a TIR Virtual Machine (VM) when you have finished with it. The VM and its disk go, and the VM's own charges stop at that moment. Its snapshots, datasets, and shared file systems stay, and you can keep its public IP as a reserved IP as you delete it. ## Before you begin - Permission to delete VMs in the project. See [TIR Access Control](/tir/tir-iam/). - Copies of anything you need from the VM's disk. The disk is deleted with the VM, and its contents are gone for good. To keep the whole disk, [take a snapshot](/tir/tir-snapshots/how-to/create-a-vm-snapshot/) of the VM first. A snapshot stays after the VM is deleted, and you can [create a new VM from it](/tir/tir-snapshots/how-to/create-a-vm-from-a-snapshot/) at any time. You can delete a committed VM during its term, but the days left are not refunded. ## Delete the VM Deleting a VM is permanent. Check the VM's name before you confirm. 1. Select **Delete** in the VM's **Actions** menu in **Manage VMs**. On its details page, it is the last item under **More Actions**. 2. (Optional) To keep the VM's public IP for later, tick **Reserve the VM's IP** followed by the address. You can do this when the VM has a public IP and you can create reserved IPs. A reserved IP has a monthly fee, and the address stays assigned to you until you release it. 3. Tick the box that reads "I understand and want to delete the VM" followed by the VM's name, and select **Delete**. The VM shows **Stopping** while its machine and disk are removed, then it leaves the list. ## What stays and what goes | Resource | After the delete | | -------------------------------- | ------------------------------------------------------------------------------------------------------------ | | The disk and its files | Deleted for good. | | Snapshots of the VM | Kept, and billed for their storage until you [delete them](/tir/tir-snapshots/how-to/delete-a-vm-snapshot/). | | Datasets and shared file systems | Detached and kept, ready to mount on another VM, and billed under their own products until you delete them. | | The public IP | Released, unless you ticked **Reserve the VM's IP**. | | A reserved IP attached to the VM | Detached and back in your project's reserved IPs. | | A VPC address | Detached. | | Alerts attached to the VM | Removed with it. | ## Withdraw a VM that is waiting for capacity A VM that shows **Pending** is waiting for capacity, and its **Actions** menu offers **Revoke Request** instead of **Delete**. Revoking deletes a VM that is still waiting for its first run, and stops one that has run before. See [Withdraw a VM that is waiting for capacity](/tir/tir-vm/how-to/stop-start-and-restart-a-vm/#withdraw-a-vm-that-is-waiting-for-capacity). From the list, you can also delete a VM that is still **Waiting** to launch, and TIR cancels its launch first. To bring back the files of a deleted VM, [create a VM from its snapshot](/tir/tir-snapshots/how-to/create-a-vm-from-a-snapshot/). To remove a shared file system as well, see [Delete an SFS](/tir/tir-sfs/how-to/delete-an-sfs/). For help with a delete that seems stuck, see [Troubleshooting TIR Virtual Machines](/tir/tir-vm/troubleshooting/tir-vm/#this-vm-is-already-being-deleted-please-wait-for-the-deletion-to-complete).