cancel
Showing results for 
Search instead for 
Did you mean: 

inbound space - delete old versions of document

ndk
Champ in-the-making
Champ in-the-making
Is it possible to write a script using deleteVersionHistory ?

What i want to do:
If a document comes into a space, i want to delete all the old versions of this document because i don't need them anymore.
(space rule: on inbound  run a .js script)

If it's possible, how can i use it?
5 REPLIES 5

jayjayecl
Confirmed Champ
Confirmed Champ
content rule : remove aspect versioning, inbound + update
wouldn't it be sufficient for your needs ?

ndk
Champ in-the-making
Champ in-the-making
I don't have the option "remove aspect versioning"

i only have this:
[img]http://www.postimage.org/aViwJtJ.jpg[/img]

jayjayecl
Confirmed Champ
Confirmed Champ
in this list I can see "remove an aspect from an item".
Select this.
Then, you will have to select which aspect.
Select "versioning"

ndk
Champ in-the-making
Champ in-the-making
oops, did not see that  Smiley Surprisedops:

And if i use versioning, all the old versions will be deleted?

tnx!

ndk
Champ in-the-making
Champ in-the-making
it don't work. Ok, you don't see the versions anymore but they are not deleted…

the .bin files are still existing… Even if you delete the document the files are still there…

Anyone an idea how you can delete them when you don't need them anymore?