Correct the remote file path when deleting