Nextflow failed pods are not getting deleted

The failed process pods created through nextflow config are not getting deleted, even after deleting the master k8 job. Is there any parameter which enables this(something similar to backoffLimit in K8).
I tried below configurations but they are not helping.

docker{
      remove = true
    }
    k8s {
      storageClaimName = 'bb-data'
      storageMountPath = '/bb-data/work'
      namespace = 'bb-dev'
      serviceAccount = 'bb-ds'
      secrets {
      secretKeyRef = 'bb-credentials'
      }
      cleanup = true
      }