code: def remove(self, remote_path):
          
          # Based on the remote file stats; remove a file or directory recursively
          ftp = self.ssh.open_sftp()
          if stat.S_ISDIR(ftp.stat(remote_path).st_mode):
              self.__remove_dir(ftp, remote_path)
          else:
              ftp.remove(remote_path)
          ftp.close()
docs: Delete a file or directory recursively on the remote server
  
          :param remote_path: Remote path to remove