1 Reply Latest reply: Aug 29, 2012 11:34 PM by tanuj004 RSS

    how to delete a "single version" a versioned file

    jmlg12 Community Member

      Is it possible to delete one of the different versions of a file ?

       

      There is a button in bridge in the "version browser" but it don't work as expected...

       

      I can delete one version of the file, and the display is Ok in Bridge, but when I inspect in CQ the deleted version remains...with "deleted-x" instead of "version-x"...

       

      Is there a way to "purge" these deleted version ?

       

      I've notice also something boring, when I tag the files in CQ (cq:tag, or dc:subject (custom field I've added)) and save these "metadatas", CQ generates a "new" version of the file... is it a normal behavior ?

        • 1. Re: how to delete a "single version" a versioned file
          tanuj004 Community Member

          there is a sling command to delete a file <input type=":operation" value="delete" /> where in the form action u ll have to put the path of the file to delete and iside that form put this input tag

          but if you want to delete a particular version u ll have to write a sling servlet where u can do this operation using node version and version history interface