Detach old action by name
@param  string $name name of action
332266
public function detachAction($name)
    {
        $actions = $this->getRequiredActions();

        foreach ($actions as $key => $action) {
            if ($action->getName() === $name) {
                unset($actions[$key]);
            }
        }

        $this->setOption(self::OPTION_REQUIRED_ACTIONS, $actions);
    }
98701
public static function remove($name)
    {
        $model = self::find()->where([self::getNameAttribute() => $name])->one();
    
        if ($model) {
            return (bool) $model->delete();
        }
    
        return false;
    }
856376
public static function dropConnection($name=null)
	{
		if (isset(self::$connections[$name]))
			unset(self::$connections[$name]);
	}
12774
public function detachBehavior($name)
    {
        if (isset($this->_behaviors[$name])) {
            unset($this->_behaviors[$name]);
        }
        unset(self::$_names[get_class($this)]);

        return parent::detachBehavior($name);
    }
1082756
public function purge($name)
    {
        try {
            if ($service = $this->getService($name)) {
                if ($service instanceof CacheInterface) {
                    $service->flush();
                }
            }
        } catch (\Exception $ex) {
            // could be due to purge triggered by ServiceDeleted event
        }
        unset($this->services[$name]);
        \Cache::forget('service_mgr:' . $name);
        \Cache::forget('service_mgr:id_name_map_active');
        \Cache::forget('service_mgr:id_name_map');
        \Cache::forget('service_mgr:name_type_map_active');
        \Cache::forget('service_mgr:name_type_map');
    }
342655
public function actionDelete($name)
    {
        $rule = $this->findRule($name);

        $this->authManager->remove($rule);
        $this->authManager->invalidateCache();

        \Yii::$app->session->setFlash('success', \Yii::t('rbac', 'Rule has been removed'));

        return $this->redirect(['index']);
    }
991451
public function offsetUnset($name)
	{
		$component = $this->getComponent($name, FALSE);
		if ($component !== NULL) {
			$this->removeComponent($component);
		}
	}
311194
public function removeName(Name $name)
    {
        if ($this->names->contains($name)) {
            $this->names->removeElement($name);
            $name->setItem(null);
        }

        return $this;
    }
777831
public static function delete($name)
    {
        empty(self::$init) && self::init();

        $session = self::get($name);
        if (is_string($session)) {
            unset($_SESSION[$name]);
        }

        if (is_array($session)) {
            $_SESSION[$name] = [];
        }
        return true;
    }
516121
public function remove($name)
    {
        if ($this->rootModule && $name === $this->rootModule->getName()) {
            $this->rootModule = null;
        }

        unset($this->modules[$name]);
    }
1177262
public static function permissionDelete($name, $action)
    {
        $permission = Permissions::where('name', $name)
            ->where('action', $action)
            ->first();

        if( ! is_null($permission) ) {
            RolesPermissionsConnections::where('permission_id', $permission->id)->delete();

            $permission->forceDelete();
        }
    }
550792
public function removeTick($name)
    {
        if (isset($this->ticks[$name])) {
            $this->ticks[$name]->setManager(null);
            unset($this->ticks[$name]);
        }
    }
129165
public function remove($name)
    {
        unset($this->plugins[$name]);
        $this->names = array_keys($this->plugins);

        return $this;
    }
565485
public function reconnect($name)
    {
        if (isset($this->connections[$name])) {
            $this->disconnect($name);
            $this->usePdo($name);
        }
    }
265944
public function remove($name)
    {
        if (isset($this->routes[$name])) {
            unset($this->routes[$name]);
        }

        return $this;
    }
439843
public function remove($name)
    {
        if (isset($this->{$name}))
        {
            unset($this->object[$name]);

            return true;
        }

        return false;
    }
753220
public function offsetUnset($name)
    {
        if (!isset($this->_hashes[$name])) {
            return;
        }
        foreach ($this->_hashes[$name] as $hash) {
            unset($this->_data[$hash]);
            unset($this->_names[$hash]);
        }
        unset($this->_hashes[$name]);
    }