Cache files causing app to miss updates

We have a service based updater running as Local System. This works fine for most users. I'm not sure how this happens, because it's sporadic in nature. However, I am seeing machines that won't update nor throw any errors, which would mean the UpToDate event is firing.

What I've found is that if I delete the files under "C:\Windows\System32\config\systemprofile\AppData\Roaming\wyUpdate AU\" and restart my service, it immediately sees my update and installs it.

Is there a way to clear wyUpdate's cache files occasionally just to make sure this doesn't hang up in the future? I did try deleting the files in code, but the folder must be some weird symbolic link or the like because my code can't see it.

It's a hidden folder, so it won't show up unless you set the correct parameters for whatever API function you're using.

Gotcha. Can't say I've ever tried deleting hidden files before with .NET's System.IO methods. I had just assumed it could handle those automatically, which is why I was thinking it was some kind of weird symbolic link or something.

Is deleting the files myself the best way to go about handling this issue? Or is there a better option?