public function remove()
    {
        if ($this->isRegistered()) {
            $this->unRegister();
        }

        $path = getLocalPath('modules/' . $this->getName());

        if ($path) {
            (new Filesystem())->remove($_SERVER['DOCUMENT_ROOT'] . $path);
        }

        unset($this->object);

        return $this;
    }
public function remove()
    {
        if ($this->isRegistered()) {
            $this->unRegister();
        }

        $path = getLocalPath('modules/' . $this->getName());

        if ($path) {
            (new Filesystem())->remove($_SERVER['DOCUMENT_ROOT'] . $path);
        }

        unset($this->object);

        return $this;
    }
public function remove ( ) { if ( $ this -> isRegistered ( ) ) { $ this -> unRegister ( ) ; } $ path = getLocalPath ( 'modules/' . $ this -> getName ( ) ) ; if ( $ path ) { ( new Filesystem ( ) ) -> remove ( $ _SERVER [ 'DOCUMENT_ROOT' ] . $ path ) ; } unset ( $ this -> object ) ; return $ this ; }
Uninstall and remove module directory.
Uninstall and remove module directory .