src/Rbac/DbManager.php
public function removeAll()
    {
        $promises = [
            $this->removeAllAssignments(),
            $this->db->createCommand()->delete($this->itemChildTable)->execute(),
            $this->db->createCommand()->delete($this->itemTable)->execute(),
            $this->db->createCommand()->delete($this->ruleTable)->execute(),
        ];
        return all($promises)
            ->then(function() {
                return $this->invalidateCache();
            });
    }
public function removeAll()
    {
        $promises = [
            $this->removeAllAssignments(),
            $this->db->createCommand()->delete($this->itemChildTable)->execute(),
            $this->db->createCommand()->delete($this->itemTable)->execute(),
            $this->db->createCommand()->delete($this->ruleTable)->execute(),
        ];
        return all($promises)
            ->then(function() {
                return $this->invalidateCache();
            });
    }
{@inheritdoc}