Hi,

i wrote a small interactive script a while ago for this purpose: https://github.com/RHofsaess/xrd-interactive

I didn't tested it for the current version of xrootd (last one was 5.4.2) and I am currently not developing it further due to time limitations.
But recursive rm should work :D

Else, you can try gfal2. This also allows recursive rm of directories that contain files.

Have a nice day.

Robin



Von: [log in to unmask] <[log in to unmask]> im Auftrag von Francisco Vazquez de Sola <[log in to unmask]>
Gesendet: Dienstag, 5. September 2023 14:41:42
An: [log in to unmask]
Betreff: Recursive xrootd rmdir ?
 
Dear Xrootd developers,

Please excuse me if this is not the right way to ask user questions, I
could not find any other channel online.

I want to remove a folder from grid storage. From checking the manual,
the command to do so would be

$ xrdfs $HOST rmdir $PATH_TO_FOLDER

However, this folder contains many folders and files, and rmdir only
works for empty folders. Is there a way to make it work recursively? Or
do I need to write my own script to take care of it?

Thank you for your time,

Francisco Vazquez de Sola

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1


Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1