Delete studies based on age

  • One solution I am considering is to set a task via third party application to delete images older than 3 days from disk. I can then manually do a database regen periodically. It would help if there is a way to automate database regeneration, say every night.


    Thanks.


    Mukoya.

  • Hi,


    you need a scheduler program, and call dgate -r.


    This may work as well at 3:00am. Note that the GUI needs to closed or log to file only for this to work.


    [lua]
    nightly = servercommand('regen:')


    But a lua program to select the information and calling dicomdelete() might be more efficient. Otherwise let it clean the database automatically by simulating a disk full condition,


    Marcel

  • Hi Marcel,


    I used the first option and so far it is working great: An application runs every 6 hours to delete dicom files older than 3 days>A scheduler programs runs a batch file with "dgate64 -r", regenerating DB every 3.am. I have set the two tasks not to coincide. Regen takes 6-10 mins, deletion takes about a minute.


    So far so good.


    Much appreciated.


    mukoya.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!