obj objRef removeArchivedContents

Available for: Content Management Server

Task: This function removes (i.e. deletes) all archived versions of the specified file, i.e. all versions except the current draft version or the committed version and the released version.

Syntax:

obj (withId objId) | (withPath path) | root removeArchivedContents

Function parameters: none.

Return value if successful: none.

Necessary permissions (CM only): the user must be the administrator of the file the version belongs to.

Example:

CM>obj withId 2003 removeArchivedContents