Removing disk and vmdk from server

Hi, we have a Windows 2012 R2 Datacenter VM which has a 1TB .vmdk assigned to it which we would like to delete and also remove from datastore? What is the best way to do this without rebooting the VM?

TIA
abhijitm00Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Right Click the VM, select Edit Settings, Click the Hard Disk, select REMOVE

then Select Remove from Virtual Machine and Remove files from disk.

This will remove the virtual disk from the VM, and delete from datastore.

This can be done whilst the VM is ON.

Remove-disk
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Emmanuel AdebayoGlobal Windows Infrastructure Engineer - ConsultantCommented:
What version of vSphere are you using?

There is no downtime from vSphere 4.1 when removing the vmdk and the datastore.
0
abhijitm00Author Commented:
Thanks Andrew and how can we remove this from the OS? Currently there is a drive letter attached to this disk in the OS
0
abhijitm00Author Commented:
Emannuel - it is 5.5
0
Emmanuel AdebayoGlobal Windows Infrastructure Engineer - ConsultantCommented:
Yes, that's fine then.

Andrew post will resolve the it.

As long as you remove it as shown in Andrew reply it will be removed from your server.

Just go to the device manager and rescan or refresh.

Regards
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.