Quick way to remove obsolete folders in PDM Workgroup

I am looking to clean up our current PDM Workgroup Vault directory. If I run a batch file with the following command, will that only delete folders named "obsolete". I have noticed that in our vault there are some folders named "XXXX obsolete" and I only want to delete the one's labeled obsolete. I'd also like to put this into a script and/or VB.NET program so that I can script it to run after shutting down the vault.

rm-recurse D:\SW_Vault obsolete

Thanks.

SolidworksWorkgroup Pdm