Hello,
I have an Orthanc server running for about 3 months, disk space is at 85% (400GB), it uses PostgreSQL (index and storage) plugins. I need to free up space, so I’ve implemented a job that performs the following steps:
-
Search all studies by period (only more than 30 days):
POST: http: // server: 8042 / tools / find
-
With the studies at hand, loop in:
DELETE: http: // server: 8042 / studies / {StudyUID}
** Deleting the study, does it delete every study tree (series and instances)?
** Even after deleting all, the space used on the disk remains at 85%, am I doing something wrong?
Thank you all!
Hello,
** Deleting the study, does it delete every study tree (series and
instances)?
Yes.
** Even after deleting all, the space used on the disk remains at
85%, am I doing something wrong?
I'll assume you're looking at file system disk usage numbers. Since
you're using PostgreSQL on top for storage, you'll need to look at PG
numbers.
It could be that everything is fine and you don't need to do anything
(PG just has a lot of free space allocated for its data files that it
will use for future studies). If you want to reclaim that space on the
file system for other applications, you should use the PG VACUUM
operation.
For some information on how to gather those numbers and the VACUUM
operation, see the following resources:
If it isn't PG, I recommend you gather a listing of the disk usage per
file/directory (e.g. with the `du' program on Unix-type systems, or
WinDirStat on Windows).
Hello Thibault,
Once again you helped me!
Thank you so much … Your tip solved the problem.