def cleanup(self, cleanup_token, cleanup_script):
    try:
      config_dict = {
        'cleanup_token': cleanup_token,
        'cleanup.sh': cleanup_script,
      }
      if self.instance_id == -1:
        message = self.proxy.deployment.cleanup(self.service, self.cluster,
          self.job, config_dict)
      else:
        message = self.proxy.deployment.cleanup(self.service, self.cluster,
          self.job, config_dict, self.instance_id)
    except (xmlrpclib.Error, socket.error), e:
      message = str(e)
    return message
Cleanup the job's data and log directories.
dataset/ETHPy150Open XiaoMi/minos/client/supervisor_client.py/SupervisorClient.cleanup