Thanks! you're right of course! I will break into a for loop.

If I use isdir here instead would this work with sym links (are they are counted as files - so we just want to rm them) ?