Run clean.sh after "delete" is selected

Is there a way in OOD to force it to run a cleanup script before scancel-ing the job?

No and infact it only runs if the process itself is destroyed. I.e., You’ve booted matlab and the user clicks the exit on matlab ending the script.

I think what you’re looking for is more along the lines of a Slurm epilogue.

Is there a way to modify the delete button then? That way, we could have it run clean.sh before scancel.

Hmmmmm, I don’t think so. The delete button use scancel or similar to stop the job. Seems like a solution like that would need to find the host, ssh to it, run the script, then do something else.

So in all, no I don’t think it can do that.