Documentation Center

delete_unused

Deletes unused resources listed in session attribute loaded by validate function.

Parameters

action
delete_unused
lang
A language version of a publication.
pub
A publication, which is a logical grouping of information (topics and multimedia) related to a specific subject, containing one or more language versions.

Example URL

http://<host>:<port>/<context>/web/pub.xql?action=delete_unused&lang=<value>&pub=<value>

Successful Result

A list of resources deleted (XML).

Failed Result

Accessing this API feature requires the "Manage pubs" permission, and the function will throw a permission exception if the permission is not available.