Hi Amala,
You aren't saying if you are using Windows, but I will assume that you are for the purpose of this example.
I have been doing something similar to do what you want to do, is that I use CAPA to launch a PowerShell script which connects to the remote server and does "something". In your case it would be run a cleanup (or a cleanup script).
You could pass a list of servers to run the script operator on the CAPA process, and have it run the cleanup either sequentially or in parallel.
You would of course have to run the PowerShell script as an ID that has the proper privileges to connect remotely, and has access to the folder in question.
Here is some documentation about Remoting in PowerShell
Geek School: Learn to Use Remoting in PowerShell
PowerShell Remoting Cheatsheet