Won't that remove all profiles or do you only want to remove roaming profiles?

Also, I would rather enumerate all profiles with ArrayEnumKey() and then delete the ones that fit my criteria.

I would not delete the profiles while in the process of enumerting them, it might confuse the enumartion index (haven't tested it as I went the safe route and kept enumeration/deletion separate).
_________________________
There are two types of vessels, submarines and targets.