OK.. Trying to get some code together that will do this..

Also found another post from Rad (MapPrinter) that does this too.

OK.. Here is some code. Trying to think in terms of working with 3.63 and up..

code:
 IF $profile_remove = 'YES'
$index = 0
WHILE ENUMKEY($profilelocation, $index) AND @error = 0
IF $keyname <> @userid OR $keyname <> 'Sales'
$rc = DELTREE($profilelocation+'\'+$keyname)
$index = $index + 1
ELSE
$index = $index + 1
ENDIF
LOOP
ENDIF

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's