I use this instruction for setting – INSTRUCTION
But I can not understand – how to delete a role? If I created an erroneous role
Answer 1, Authority 100%
You can remove class Yii \ rbac \ dbmanager
$ role = yii :: $ app- & gt; authmanager- & gt; getrole ("admin");
Yii :: $ App- & gt; AuthManager- & gt; Remove ($ Role);
source Documentation