public function delete($groupId)
    {
        $this->requireAdmin();
        $group = $this->groupStore->getById($groupId);

        $this->groupStore->delete($group);
        $response = new b8\Http\Response\RedirectResponse();
        $response->setHeader('Location', PHPCI_URL.'group');
        return $response;
    }
public function delete($groupId)
    {
        $this->requireAdmin();
        $group = $this->groupStore->getById($groupId);

        $this->groupStore->delete($group);
        $response = new b8\Http\Response\RedirectResponse();
        $response->setHeader('Location', PHPCI_URL.'group');
        return $response;
    }
public function delete ( $ groupId ) { $ this -> requireAdmin ( ) ; $ group = $ this -> groupStore -> getById ( $ groupId ) ; $ this -> groupStore -> delete ( $ group ) ; $ response = new b8 \ Http \ Response \ RedirectResponse ( ) ; $ response -> setHeader ( 'Location' , PHPCI_URL . 'group' ) ; return $ response ; }
Delete a project group.
@param $groupId
@return b8\Http\Response\RedirectResponse
Delete a project group .