Hi Aditya,
My guess it that you would want to find out the source of the error code 500 on the remote side. It's possible that the log entry that says "source file not deleted" may be a result of the unexpected termination on the remote end as part of the HTTP request.
Regards,
Ryan Crosby