protected function _reset()
    {
        if ($this->_sourceType !== self::TYPE_DIR && $this->_workingDir) {
            $source = new Folder($this->_workingDir);
            $source->delete();
        }

        $this->_addedOptions = [];
        $this->_workingDir = null;
        $this->_sourceType = null;
        $this->_plugin = [
            'name' => '',
            'packageName' => '',
            'type' => '',
            'composer' => [],
        ];

        Plugin::dropCache();
        $this->_detachListeners();

        return false;
    }