DBA Tips Archive for Oracle


Deleting a Virtual Machine

by Jeff Hunter, Sr. Database Administrator


  1. Overview
  2. Remove a Virtual Machine


This article presents the steps required to successfully remove a VMware virtual machine from your computer. My motivation for writing this article is that VMware workstation does not provide a menu option or button on the toolbar to perform this action. It only took a quick search in the online documentation to find the solution, but thought it deserved an article within the VMware section of this website.

WARNING: As with any article of this nature, the steps described in this article will completely remove a VMware Workstation virtual machine from your computer. If you have any important or critical data that needs to be backed up, do so before removing the virtual machine. You have been warned!

Remove a Virtual Machine

For the purpose of this example, I have a VMware Workstation virtual machine running Red Hat Linux that I no longer need. I have already went through and decided that I have no data on that machine that needs to be backed up.

The first step is to ensure the virtual machine is not running. If it is running then shut it down.

Next, remove the virtual machine's name from the Favorites list within the VMware Workstation program. For the purpose of this example, I want to delete a virtual machine that I had named "Red Hat Enterprise Linux 3". Simply right-click on the virtual machine name in the Favorites list and select "Remove from Favorites". You will need to confirm this option. This choice affects only the listing in the Favorites list; it leaves all virtual machine files on the host computer.

After successfully removing the entry for the virtual machine from the Favorites list, you then simply need to delete the operating system files from the host computer associated with the virtual machine. By default, all virtual machine files are stored in the directory C:\Documents and Settings\<USER_NAME>\My Documents\My Virtual Machines. Once you have identified the folder that contains the virtual machine, then delete the folder and all the files it contains. For the purpose of this article, I will be removing the folder C:\Documents and Settings\jhunter\My Documents\My Virtual Machines:

C:\> rmdir /s "C:\Documents and Settings\jhunter\My Documents\My Virtual Machines\Red Hat Enterprise Linux 3"
After removing the directory that contains the files for the virtual machine, that virtual machine is now deleted.

Copyright (c) 1998-2018 Jeffrey M. Hunter. All rights reserved.

All articles, scripts and material located at the Internet address of http://www.idevelopment.info is the copyright of Jeffrey M. Hunter and is protected under copyright laws of the United States. This document may not be hosted on any other site without my express, prior, written permission. Application to host any of the material elsewhere can be made by contacting me at jhunter@idevelopment.info.

I have made every effort and taken great care in making sure that the material included on my web site is technically accurate, but I disclaim any and all responsibility for any loss, damage or destruction of data or any other property which may arise from relying on it. I will in no case be liable for any monetary damages arising from such loss, damage or destruction.

Last modified on
Thursday, 05-Jul-2007 00:11:45 EDT
Page Count: 4922