Jump to content

How to delete a vdisk


iHoller

Recommended Posts

@iHoller open a console and navigate to the path of the specific VM. You should find the vdisk files in that specific folder. "domains" is the default share from Unraid where all the vdisks are stored separated in subfolders named the same like the VMs. If you have stored the vdisks somewhere else you have to adjust the path.

cd /mnt/user/domains/VMNAME

VMNAME is the name you gave the VM during setup. If you're not sure navigate to the domains folder and list the content with "ls". You should see a folder for each VM. Make sure you delete the correct folder/file. There is no way to recover from the following!

 

if you're inside the folder list the files again and with the following you delete the vdisk:

rm vdisk1.img

Make sure the naming is right (vdisk1.img or vdisk2.qcow2 for example)

If you're in the domains folder and want to delete a specific folder of a VM with all it's content type

rm -rf /FOLDERNAME

"-r" is for recursive and "f" for a folder. The folder and all of it's content will be gone!

Again, make sure you delete the correct folder/file. There is no way to recover if you delete the wrong one and have no backup!

 

 

  • Like 2
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...