def delete_job(event: JobEvent):
    """
    Delete the job from the cluster
    """
    job = event.get_job()
    if not job:
        logging.info("Cannot run delete_job with no job. skipping")
        return

    # After deletion the metadata is empty. Saving the name and namespace
    name = job.metadata.name
    namespace = job.metadata.namespace
    job.delete()
    event.add_enrichment([MarkdownBlock(f"Job *{namespace}/{name}* deleted")])

    Delete the job from the cluster
    
playbooks/robusta_playbooks/job_actions.py