before deletion on branch