A few remarks:
ct lsprivate
is great for dynamic views, not snapshot views
ct ls -rec -view_only
as well as ct lsprivate
also list your checked-out files... I am not sure you want to delete those...
For listing private files (only private ones, not hijacked ones you may want to keep), you need to have a command that:
That lists all your private files (skipping the hijacked/eclipsed/checked-out or non-private ones as well as symlinks) in a pure Windows way (no external shell dependency needed).
Replace @echo "%i"
by del /F "%i"
and they are gone.
Note the double quotes around %i, in order to display/remove properly files with spaces in their name.
Also note the absence of the cleartool parameter -nxn, as symlinks would otherwise be indistinguishable and view-private files are not being decorated anyway.
In order to also get rid of private directories, first run the command with rmdir /S /Q "%i"
and then with del /F "%i"
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…