XNAT auto-deletes companion files (.cdt/.ceo/.dpo) - is this expected?

25 views
Skip to first unread message

Ricky Wong

unread,
Dec 3, 2025, 7:28:13 PM12/3/25
to xnat_discussion

Hi everyone,

I recently discovered some behavior in XNAT regarding file deletion and wanted to share my findings and ask if others have encountered this.

The Scenario

We store EEG data in XNAT using Curry/Neuroscan format, which consists of three companion files:

  • .cdt - main data file
  • .ceo - config
  • .dpo - display/parameter options

These files are uploaded as separate entries in a scan's resource catalog (with content and tag set as 'U').

eeg.png

When deleting a single .cdt file through the WebUI, XNAT automatically removes the associated .ceo and .dpo files as well - even though I only selected one file for deletion.

The companion files were already gone after deleting just the .cdt file.

How does XNAT determine which files are "companions"? Is it based on file extension patterns (e.g., knowing .cdt/.ceo/.dpo belong together) or content type / tag?

XNAT version: 1.9.1.2

Just wonder whether this behavior is intended in XNAT, and would like to understand it better so that I can maintain proper control over the file-handling process.

Thank y'all!


Ricky

Mohana Ramaratnam

unread,
Dec 4, 2025, 12:31:00 AM12/4/25
to xnat_di...@googlegroups.com
HI Ricky,

I am not able to reproduce what you are seeing. I tested against XNAT 1.9.3. I assigned the same Format/Content and Tag to the files (in this case U)

Screenshot 2025-12-04 at 10.56.39 AM.png

I deleted one file (12*.xml as well as .cdt) from EEG resource, the files left were:

Screenshot 2025-12-04 at 10.59.06 AM.png


Regards,
Mohana Ramaratnam,

 moh...@xnatworks.io
 xnatworks.io | Find us on LinkedIn


--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/fc114ba1-1ee0-4f85-bcba-42b808b3fe89n%40googlegroups.com.

Mohana Ramaratnam

unread,
Dec 5, 2025, 10:35:55 AM12/5/25
to xnat_di...@googlegroups.com
Hi Ricky,

My bad, I did not read your email carefully. 

We have created a ticket to track this issue. 

Regards,
Mohana Ramaratnam,

 moh...@xnatworks.io
 xnatworks.io | Find us on LinkedIn

Ricky Wong

unread,
Dec 23, 2025, 2:19:29 PM (9 days ago) 12/23/25
to xnat_discussion
Hi Mohana, thanks for tracking this down. 

I noticed that there is a bug fix related to file deletion logic in the latest XNAT 1.9.3.1 release, so I assume this issue should be resolved there.

Ricky

Timothy Olsen

unread,
Dec 23, 2025, 2:26:19 PM (9 days ago) 12/23/25
to xnat_di...@googlegroups.com
That's correct Ricky.  Thanks for bringing this one to our attention.  It should be fixed in 1.9.3.1.
Tim
 

Timothy R Olsen 

Founder, President

Reply all
Reply to author
Forward
0 new messages