Is there a way to script the cleanup of the C:\ProgramData\Dell\Kace\Patches directory?

Is there a way to script the cleanup of the C:\ProgramData\Dell\Kace\Patches directory?

Either from Kace or with a file I can leave on the desktop for me to manually run each month if this happens.

It's fine if I need to logon and run a script locally. Stop and starting the ampagent with a script is not a problem, I have batch files that handle the processes fine. But I'm unable to delete the contents of the Patches directory with a script.

Some errors could be: "C:\....\Konea.log" and "KONEA_STARTED"

The process cannot access the file because it is being used by another process.

But I can close that cmd window, manually highlight the contents of the Patches directory and delete them all without a problem.