protected function removeModuleDirectory($moduleName)
    {
        $this->files->deleteDirectory($this->getModuleDirectory($moduleName));
        if($this->files->exists($this->getModuleDirectory($moduleName)))
        {
            $this->errors->add('delete_files', 'Unable to delete '.$this->getModuleDirectory($moduleName));
            return false;
        }
        return true;
    }