In IAM Models and Branches kan be cleaned up by using the delete button. If you accidently had selected a model instead of a branch, the whole model is deleted including all branches.
If all groups and roles are implemented in the SF a sync could fix the mistake. If not you're left with restoring the IAM database.
Today I accidently removed a model instead of a branch this way. I now depend on IT to restore the database. Luckily it was no production IAM.
My idea: present the user with a popup and having him/her selecting wether to delete a model with all branches or not. If it is up to me, deleting a model that has branches shouldn't be possible at all.
