code: def __remove_dir(self, ftp, remote_path):
          
          # Iterate over the remote path and perform remove operations
          files = ftp.listdir(remote_path)
          for filename in files:
              # Attempt to remove the file (if exception then path is directory)
              path = remote_path + self.separator + filename
              try:
                  ftp.remove(path)
              except IOError:
                  self.__remove_dir(ftp, path)
  
          # Remove the original directory requested
          ftp.rmdir(remote_path)
docs: Helper function to perform delete operation on the remote server
  
          :param ftp: SFTP handle to perform delete operation(s)
          :param remote_path: Remote path to remove