Previous Topic: dpmhv-createVMFromTemplateEx (Funclet) Command--Create a VM Using a TemplateNext Topic: dpmhv-destroyVM (Cmdlet) Command--Delete VM


dpmhv-destroyTemplate (Cmdlet) Command--Delete a Template

The dpmhv-destroyTemplate command lets you delete existing templates from the template catalog.

This command has the following format:

dpmhv-destroyTemplate 
-template templatename 
-host hostname
-template templatename

Specifies the name of the generic template created in the template catalog.

Note: The template name must be unique in the local template catalog.

-host hostname

Specifies the name of the Hyper-V server host.

Example: Delete a Template

This example deletes a Template from the template catalog.

dpmhv-destroyTemplate -host hvserver -template MyTemplate