How to delete an unused Virtual System (vsys) from the Panorama Template Stack and templates.
12158
Created On 11/24/22 17:05 PM - Last Modified 12/24/25 21:15 PM
Objective
To delete an unused Virtual System (vsys) from the Panorama Template Stack and templates.
Environment
- Any Panorama
- PAN-OS 9.1 and above
- Template stack or Templates
Procedure
- Enter the configure mode in Panorama.
- Run the following command from the Panorama CLI to delete the vsys from the Panorama template.
> configure
#delete template <template name> config vsys <vsys name>
- Run the following command from the Panorama CLI to delete the vsys from the Panorama template stack if the vsys is already deleted in the Template but still visible in the Stack.
> configure
# delete template-stack <template_stack name> config devices localhost.localdomain vsys <vsys name>
# commit forceAdditional Information
- In the following example, the VSYS is not present in the template, but is present in the template stack.
- Here, one can create a new template stack, mapping the template without the VSYS and push the same to the firewalls.