I have tons of xxx.cmd files that sit in multiple folders (e.g. child1, child2, child3, etc), they have a parent folder <
Not easily, because you need to checkout any parent directory including those files, before doing the cleartool rmname.
The easiest would be to:
clearfsimport back those files into your view (minus the *.cmd files removed), with the option -rmname ("mirror clearfsimport"):
–rmname
For all source-name arguments that are directories, performs an
rmnameoperation on elements that are already in the VOB but are not present in the source directory.
If used in combination with-recurse, performs thisrmnameoperation in all directories traversed.
If used in combination with-downcase, performs thedowncaseoperation before looking for matching names in the VOB.