obj objRef removeActiveContents

Available for: Content Management Server

Task: This function removes (i.e. deletes) all active versions of the specified file, i.e. the current draft version or the committed version and the released version. Archived versions will not be deleted by this function (see content contentRef delete).

Syntax:

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

Additional information: If a released version exists, it will only be deleted if archiving is switched off. Otherwise the version will be converted to an archived version.

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 removeActiveContents