Hello Vrinda,
thank you very much.This also works for us with most of the studies, but there are still some studies that have not been deleted, even though all the criteria apply and are also stored in the nearline and that is why the online storage threatens to fill up, because these studies are not deleted.
I have had a look in the database.
pacsdb=> select count(
l1.pk) from location l1 where l1.storage_id='online' and exists (select
l2.pk from location l2 where l2.storage_id='nearline' and l1.storage_path=l2.storage_path);
count
--------
660475
(1 row)
pacsdb=> select count(
l.pk) from location l where l.storage_id='online';
count
----------
660475
(1 row)
pacsdb=> select count(
l.pk) from location l where l.storage_id='nearline';
count
----------
29510471
(1 row)
The strange thing is that it affects studies that were transmitted between 6 July and 19July. Attached there ist one study where series 1 was received on 16 of July and series 2 was received on 19 of July. Study availability is nearline, series 1 availability is also nearline but series 2 availability is online.