public function remove()
    {
        $this->setState('uninstall');

        $this->changeState();

        if (! $this->deleteDirectory()) {
            $this->setState('uninstalled');
        }

        return true;
    }