Posted on November 4, 2016 at 11:09 pm
To delete a template on XenServer you can type:
xe template-uninstall template-uuid=ENTER_TEMPLATE_UUID_HERE force=true |
If it cannot be deleted due to these errors:
The operation attempted is not valid for a template VM You cannot delete the specified default template |
Make sure to remove the “default_template” parameter:
xe template-param-remove uuid=ENTER_TEMPLATE_UUID_HERE param-name=other-config param-key=default_template |
Then retry to delete the template, it should work:
[root@rs2 ~]# xe template-param-remove uuid=1233c123-3216-g5eb1-152a-123fa1239612 param-name=other-config param-key=default_template [root@rs2 ~]# xe template-uninstall template-uuid=1233c123-3216-g5eb1-152a-123fa1239612 force=true The following items are about to be destroyed VM : 1233c123-3216-g5eb1-152a-123fa1239612 (Debian 8 Jessie (64-bit)) All objects destroyed |
Updated on November 19, 2016 at 12:04 pm
Other Posts
- Route OpenVPN Connections Through Floating IP
- How to Configure a Floating IP in a VPS (Hetzner)
- Set OpenVPN to Listed on a Specific IP Address
- Bash Trim Leading and Trailing Whitespace from a String
- Bash Get Name of Ethernet Network Interface
- VPN Providers with Dedicated Static IP Address
- OpenVPN Iptables Rules
- WireGuard VPN Iptables Rules
Updated Posts
- AMD Chipsets & Graphics Card Drivers for Windows 7, 8, 10
- AMD Radeon 7400 Drivers for Windows 10
- How to pass custom command-line parameters in InnoSetup
- Add Desktop shortcut for all Windows PC users
- Programmatically create desktop icon with InnoSetup
- GeneratePress - a Lightweight WordPress Theme 2021
- InnoSetup disable DesktopIcon via command-line
- Use cURL to authenticate with JWT Bearer tokens