Available for: Content Management Server
Task: Deletes an archived version. For deleting a draft version, use the obj revert
command.
Syntax:
content withId contentId delete
Function parameters: none
Return value if successful: none
Necessary permissions: The user must have the permissionRoot
permission for the file the version belongs to.
Example: Delete all archived versions of a file:
CM>foreach i [obj withPath /news get archivedContentIds] \ {content withId $i delete}