move delete of assignments (and roles) to the end.