Skip to main content
Answer

Script/XML to delete VM from Subclient

  • November 20, 2023
  • 8 replies
  • 77 views

Forum|alt.badge.img+5

I am looking for a command wherein i can just give VM Name and delete that VM from Subclient which has many VMs in it. Is there a command or an XML using which this can be achieved. Need to use it for decommission process.

Best answer by Sebastien Merluzzi

This one: 

https://documentation.commvault.com/2023e/expert/32427_deleting_virtual_machine_from_subclient_vmware_command_line.html

Is this what you are looking for?

8 replies

Forum|alt.badge.img+14

Hi @Rahul Nair ,

Can you check this:

https://documentation.commvault.com/2023e/essential/101876_remove_cvvirtualmachine.html

Best Regards,

Sebastien


Forum|alt.badge.img+5
  • Author
  • Novice
  • November 20, 2023

Yeah i went through this but I am not looking for a powershell module. Anything through XML or a qcommand. I will have to first identify the VCenter name and subclient name through VMName and then use those in the script so looks to be a bit tedious. Any help would be appreciated.


Forum|alt.badge.img+14

We don’t have a qcommand.


Forum|alt.badge.img+5
  • Author
  • Novice
  • November 21, 2023

okay, so the only option to use is Powershell module?


Forum|alt.badge.img+14

That’s right.


Forum|alt.badge.img+14

Forum|alt.badge.img+5
  • Author
  • Novice
  • November 23, 2023

Hi Sebastian, 


Yes thats right i was looking for this. thanks a lot for the help.


Forum|alt.badge.img+14

ok, great, please mark it as solved.

Thanks