def METHOD_NAME(queue):
    failed_job_registry = FailedJobRegistry(queue, connection=connection)
    job_ids = failed_job_registry.get_job_ids()
    for job_id in job_ids:
        failed_job_registry.remove(job_id, delete_job=True)
    print(f"Deleted {len(job_ids)} jobs from the failed job registry.")