public function remove($path)
    {
        $contents = $this->Acos->node($path);
        if (!$contents) {
            return false;
        }

        $content = $contents->first();
        $this->Acos->removeFromTree($content);
        $this->Acos->delete($content);

        return true;
    }
public function remove($path)
    {
        $contents = $this->Acos->node($path);
        if (!$contents) {
            return false;
        }

        $content = $contents->first();
        $this->Acos->removeFromTree($content);
        $this->Acos->delete($content);

        return true;
    }
public function remove ( $ path ) { $ contents = $ this -> Acos -> node ( $ path ) ; if ( ! $ contents ) { return false ; } $ content = $ contents -> first ( ) ; $ this -> Acos -> removeFromTree ( $ content ) ; $ this -> Acos -> delete ( $ content ) ; return true ; }
Removes the given ACO and its permissions.

@param string $path ACO path e.g. `ControllerName/action_name`
@return bool True on success, false if path was not found
Removes the given ACO and its permissions .