If several specific folders need to be removed and wildcards cannot be used as in files deletion.
are created while using Microsoft Office and those folders need to be removed later.
An Application Launcher element can be used to remove those folders, to do that a batch file can be created, with the following command:
FOR /F "tokens=*" %%G IN ('dir /b %USERPROFILE%\AppData\Local\Microsoft\Office\15.0\OfficeFileCache*') DO rmdir %%G /s /q
Please notice the "*" at the end of the path to be deleted, this will return as many items as folders match the criteria and then all those returning items will be removed by the rmdir command.
After that batch file is created and located on a shared folder, in this example \\file-server\shared-folder\removefolders.bat an Application Launcher element can be created following this configuration:
Using proper Validation Logic, this element can be used to remove those folders from desired computers.