Here is the excerpt from the log. You can see I do a patient level listing and it returns 9 records. I then send a command to delete one of the patients. All the files are deleted off the disk, but when I run the patient level listing immediately after it still returns 9 records and the patient I just deleted is amongst the results. I haven't had a chance to test the dgatesop.lst thing yet. I'll let you know what I find.
Fri Jan 7 23:40:01 2011 UPACS THREAD 2: STARTED AT: Fri Jan 7 23:40:01 2011
...
Fri Jan 7 23:40:01 2011 C-Find (PatientRoot) located 9 records
Fri Jan 7 23:40:46 2011 Server command sent using DGATE -- option
..
Fri Jan 7 23:40:46 2011 Deleting patient: 0228327
Fri Jan 7 23:40:46 2011 Removed file: [MAG0:0228327/1.3.46.670589.11.0.0.11.4.2.0.8056.5.4916.2010021609180565577_0101_000005_1270361533048c.dcm]
Fri Jan 7 23:40:46 2011 Removed file: [MAG0:0228327/1.3.46.670589.11.0.0.11.4.2.0.8056.5.4916.2010021609180565577_0101_000006_1270361533048d.dcm]
..
Fri Jan 7 23:40:47 2011 Removed file: [MAG0:0228327/1.3.46.670589.11.0.0.11.4.2.0.8056.5.4916.2010021609414134740_0701_000009_1270361538050b.dcm]
Fri Jan 7 23:40:47 2011 Removed file: [MAG0:0228327/1.3.46.670589.11.0.0.11.4.2.0.8056.5.4916.2010021609414134740_0701_000010_1270361538050c.dcm]
Fri Jan 7 23:41:34 2011 Server command sent using DGATE -- option
Fri Jan 7 23:41:34 2011
Fri Jan 7 23:41:34 2011 UPACS THREAD 4: STARTED AT: Fri Jan 7 23:41:34 2011
...
Fri Jan 7 23:41:34 2011 C-Find (PatientRoot) located 9 records