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?