Application Programming Interface Guide > Web Services Operations > Operations Reference > destroyResources
 
destroyResources
Destroy several resources. Containers are recursively destroyed.
The force element defines the behavior for containers. If force is FALSE, no resources are destroyed unless all resources within the container can be destroyed. If force is TRUE, as many resources are destroyed as possible, but if any resource cannot be destroyed, the container that resource is in is not destroyed.
Location
/services/webservices/system/admin/resource/operations/
Request Elements
entries: List of path-type pairs for the resources to be destroyed.
force: If TRUE, attempt to destroy as many resources as possible. If FALSE, do not destroy any resource if there exists at least one that is not destroyable.
Response Elements
destroyedAll: If TRUE, all of the resources were completely destroyed including the contents of containers; otherwise FALSE.
Faults
IllegalArgument: If any of the given paths or types are malformed.
IllegalState: If any of the resources are not allowed to be destroyed.
NotFound: If any of the resources or any portion of their paths do not exist.
Security: If the user does not have READ access on all items in paths other than the last one.
Security: If the user does not have WRITE access to the resources.
Security: If force is FALSE and the resource is a container and the user does not have WRITE access to any resource within the container.
Security: If the user does not have the ACCESS_TOOLS right.