Anyone know of the best way to clear out the users application data folder on exit. What I'm really looking for is a script. I've tried to do it but falls over when accessing the Microsoft folder.

Many thanks