Delete a VM
This page explains how to permanently delete a Virtual Machine (VM) in CloudRaya, what happens to its resources, and important considerations before proceeding.
Deleting a VM is an irreversible action and should be performed with caution.
When Should You Delete a VM?
You may want to delete a VM when:
- The VM is no longer needed
- You want to clean up unused environments
- You plan to rebuild the workload using a new VM
- You want to stop compute charges permanently
If you only want to temporarily stop billing, consider using:
📄 Stop VM
How to Delete a VM
You can delete a VM from the VM Detail page.
Steps
- Go to Dashboard → Virtual Machine
- Click View Detail on the VM you want to delete
- Click the Delete (trash icon) in the Virtual Machine Action section
- A confirmation dialog will appear
- Type the VM name to confirm
- Click Delete VM
Once confirmed, the deletion process will start immediately.
⚠️ What Happens When You Delete a VM?
Compute Resource
- The VM instance is permanently deleted
- This action cannot be undone
Storage Behavior
- The root disk of the VM is deleted automatically
- Any additional data disks attached to the VM remain available
- Remaining disks can be attached to another VM if needed
Public IP Behavior (Important)
When deleting a VM, CloudRaya allows you to choose whether to retain or release the Public IP address.
Option 1: Delete Public IP (Default)
If you delete the VM without retaining the Public IP:
- The Public IP is released back to the pool
- You may not receive the same IP address again
- The IP no longer counts toward your Public IP quota
Option 2: Retain Public IP
If you choose to keep the Public IP:
- The Public IP remains owned by your account
- The IP becomes unattached (no instance)
- The IP continues to appear in Dashboard → Public IP
- The IP still counts toward your Public IP limit
- The retained IP can be reattached to another VM later
⚠️ Public IP Quota Reminder
Public IP limits in CloudRaya are applied per account, not per project.
- Each account can own up to 4 Public IPs total
- This limit is shared across all projects
- Retained (unused) Public IPs still consume quota
If you cannot acquire a new Public IP, make sure to delete unused or retained IPs first.
📄 See: Public IP Address
Billing Impact
After deletion:
- Compute charges stop immediately
- Storage charges continue for:
- Detached data disks
- Snapshots
- Retained Public IPs
To fully stop all billing, make sure you also:
- Delete unused storage
- Delete snapshots you no longer need
- Release retained Public IPs
📄 See:
Best Practices Before Deleting a VM
Before deleting a VM, we strongly recommend:
- Create a snapshot if you may need the data later
- Detach important data disks
- Verify whether the Public IP needs to be retained
- Confirm no production workload is still running
Important Notes and Limitations
- VM deletion cannot be undone
- Root disk data is permanently lost
- Snapshots are not restored automatically
- Deleted VMs cannot be recovered
- Deleting a VM is different from reinstalling a VM
📄 See:
Next Steps
After deleting a VM, you may want to:
-
Create a new VM
-
Reuse existing storage
-
Clean up unused resources