Question

How to delete Document Revisions and the associated Files automatically?

  • 16 July 2020
  • 5 replies
  • 569 views

Badge +1

We are currently trying to delete all Document Revisions and the associated Document File which have the Document Revision Status “Obsolete”. 

 

Is there any way to delete these Revisions and Files automatically? 

 

Thanks for your help. 


5 replies

Userlevel 7
Badge +18

If you want to do it from the application,

  • In Document Management\Document Revisions, you can query for obsolete documents.
  • Select all, RMB File operations > Delete document revision (if you want to delete the file only, then select RMB File operations > Delete document files).
  • However, you will be prompted with information messages, questions for each document revision most of the time, so again this will not be a complete automatic process

Another option is to use a data repair. The data repair should be written in a way you will have to delete the connection, then delete the file and document object.

Userlevel 3
Badge +8

If you want to do it from the application,

  • In Document Management\Document Revisions, you can query for obsolete documents.
  • Select all, RMB File operations > Delete document revision (if you want to delete the file only, then select RMB File operations > Delete document files).
  • However, you will be prompted with information messages, questions for each document revision most of the time, so again this will not be a complete automatic process

Another option is to use a data repair. The data repair should be written in a way you will have to delete the connection, then delete the file and document object.

Is this feasible to create into a scheduled task based on the days since obsolete???

 

Thanks!

Userlevel 2
Badge +7

The answer below can be useful:

BR,

Joao

Badge +8

Hi @Mathias Dahl ,

 

i saw you mentioned about you scheduled a background job to delete obsolete document in docman from below post.

here you mentioned about ‘see above stetting we have for that’. can you kindly add image of that setting because i cannot see it that post.

Thank you

supuni

 

Userlevel 7
Badge +30

I was referring to this:

"In the Document Basic data there is a tab named Document Default Values where you can change parameter settings to meet your needs. The parameter to determine how long to keep an obsolete document is called DAYS_EXPIRED"

 

Reply