I wants to delete the below folder every time only on each view bulk operations but currently it is getting deleted for each node selected in VBO. I am executing this action in rules module.
Please let men know how to run this only once for each VBO.
$pdfdir="/var/www/websites/test/sites/default/files/pdffolder"; $directory = escapeshellarg($pdfdir); shell_exec("rm -rf $directory");
This is the code executing via Rules Module.