I hope you verified this by opening the task page again. The file was getting deleted but I was concerned about error only and to rule out any Java script error while clicking the button.
Refresh is like loading the provider again. So just check if any issues in the same once as there is a difference in provider data now, one with file and other without file. So still the deleted row/file is getting referred.
Also, put the table in the block panel and refresh that once and see.
I don’t have CAF set up to re-create this issue and test this. So I can propose certain options only. Sorry.
Regards,
Firoz N
#webMethods#MWS-CAF-Task-Engine#Error