updated delete routine to remove unused profile files.