Skip to Content
author's profile photo Former Member
Former Member

how to delete a document version via API

Hi guys,

Just a very quick question for you.

Environment: ContentManagementAndCollaboration

We'd like to get version history from a KM resource and delete, from this history, the version n-1.

Is it possible to do this via APIs?

We have tried with remove method of IVersionHistory interface but seems that nothing happens.

Do you have any suggestion or code snippets in order to perform this action?

Many many thanks in adavance

Merry Xmas to all


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2004 at 11:46 AM


    you should be able to delete any version, unless (I think) it's the checked-in/checked-out version. In any case, either the version should be deleted, or an exception should be thrown.

    Maybe you could provide more details (sample code and layout of the version history before the delete attempt?).

    Best regards, Julian

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Well, <b>isVersioned()</b> is supposed to work; and if it doesn't that's a bug. Relying on "enhanced collection" is a bad idea because it's a different concept which may not even exist on all repository managers.

      Please re-check that <b>isVersioned()</b> applied to the resource itself (<i>not</i> it's parent collection) really doesn't return the correct information. If this is the case, please open a support case.

      Best regards, Julian

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.