lib/GitHub/Receiver/Organizations/Hooks.php
public function deleteHook(string $org, int $id): bool
    {
        $this->getApi()->request($this->getApi()->sprintf('/orgs/:org/hooks/:id', $org, (string)$id),
            Request::METHOD_DELETE);

        if ($this->getApi()->getHeaders()['Status'] == '204 No Content') {
            return true;
        }

        return false;
    }
public function deleteHook(string $org, int $id): bool
    {
        $this->getApi()->request($this->getApi()->sprintf('/orgs/:org/hooks/:id', $org, (string)$id),
            Request::METHOD_DELETE);

        if ($this->getApi()->getHeaders()['Status'] == '204 No Content') {
            return true;
        }

        return false;
    }
public function deleteHook ( string $ org , int $ id ) : bool { $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/orgs/:org/hooks/:id' , $ org , ( string ) $ id ) , Request :: METHOD_DELETE ) ; if ( $ this -> getApi ( ) -> getHeaders ( ) [ 'Status' ] == '204 No Content' ) { return true ; } return false ; }
Delete a hook

@link https://developer.github.com/v3/orgs/hooks/#delete-a-hook

@param string $org
@param int    $id

@return bool
@throws \Exception
Delete a hook