Previous page

Next page

Locate page in Contents

Print this page

Removing EZ Templates From the Server

The vzpkg remove template command allows you to remove from the host those EZ OS and application templates that you do need any more. The process of removing an EZ template includes deleting all the RPM packages comprising this template and all the caches available for this template (for EZ OS templates only). Please keep in mind that the template to be removed should not be applied to any Container. Otherwise, the template deletion will fail. A session below demonstrates how to remove the redhat-el5-x86 EZ OS template from the host:

# vzpkg list

redhat-el6-x86 2012-06-16 12:50:17

centos-6-x86 2012-06-18 14:23:12

# vzpkg remove template redhat-el6-x86

redhat-el6-x86 template was removed

# vzpkg list

centos-6-x86 2012-06-18 14:23:12

To remove an EZ application template from the server, you should additionally specify the -F option after the vzpkg remove template command. This option denotes the EZ OS template with which the EZ application template is compatible. For example, the following command can be used to remove the mailman EZ application template that is intended for running under RHEL 6 from your server:

# vzpkg remove template -F redhat-el6-x86 mailman

redhat-el6-x86 mailman template was removed

You can also remove several EZ templates at once by specifying their names after vzpkg remove template and separating them by spaces. However, when handling application templates, keep in mind that you can delete only those application templates that relate to one and the same EZ OS template. For example:

# vzpkg remove template -F redhat-el6-x86 sitebuilder4 mailman

redhat-el6-x86 sitebuilder4 template was removed

redhat-el6-x86 mailman template was removed

In this example the sitebuilder4 and mailman EZ application templates intended to run under RHEL 6 have been successfully removed from the host.