Hi would like to know what would be the cause for this error?
As the error says, the connection was closed by the SFTP server. It seems that happened while you tried to delete a file. Why the remote host closed the connection is of course just guess work. Can you delete the file using an FTP client like FileZilla?