* Delete branch if PR closed or merged * Simplify regenerate with the ref API * Test clean of regenerate