Ubuntu retirez tous les dossiers mais gardez certains

find ./myfolder -mindepth 1 ! -regex '^./myfolder/test2\(/.*\)?' -delete
GutoTrosla