N1 Grid Service Provisioning System 5.0 XML Schema Reference Guide

<undeployResource> Step

This step is used to remove a resource from the containing component. The step can only be used in an uninstall block of a simple component and has no attributes or child elements.

A directory type resource where deployMode=ADD_TO will have its files removed, but its subdirectories will remain.

A directory type resource where deployMode=REPLACE will have the entire directory and its contents removed.

All other resources are treated as simple files and are removed.

The resource is removed regardless of whether it was originally deployed during the installation of the component. Even if the component was installed using an install block that did not contain a <deployResource> step, the <undeployResource> step removes the resource as if it had been originally installed by the component.