def delete_job()

in python-batch/batch.py [0:0]


  def delete_job(self, job_to_delete) -> Operation:
      """
      Triggers the deletion of a Job.

      Args:
        delete_job: name of the job to delete

      Returns:
          An operation object related to the deletion. You can call `.result()`
          on it to wait for its completion.
      """
      client = batch_v1.BatchServiceClient()

      return client.delete_job(name=f"projects/{self.project_id}/locations/{self.config['region']}/jobs/{job_to_delete}")