lib/GitHub/Receiver/Issues/Labels.php
public function deleteLabel(string $name): bool
    {
        $this->getApi()->request($this->getApi()
                                      ->sprintf('/repos/:owner/:repo/labels/:name', $this->getIssues()->getOwner(),
                                          $this->getIssues()->getRepo(), $name));

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

        return false;
    }
public function deleteLabel(string $name): bool
    {
        $this->getApi()->request($this->getApi()
                                      ->sprintf('/repos/:owner/:repo/labels/:name', $this->getIssues()->getOwner(),
                                          $this->getIssues()->getRepo(), $name));

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

        return false;
    }
public function deleteLabel ( string $ name ) : bool { $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/labels/:name' , $ this -> getIssues ( ) -> getOwner ( ) , $ this -> getIssues ( ) -> getRepo ( ) , $ name ) ) ; if ( $ this -> getApi ( ) -> getHeaders ( ) [ 'Status' ] == '204 No Content' ) { return true ; } return false ; }
Delete a label

@link https://developer.github.com/v3/issues/labels/#delete-a-label

@param string $name

@return bool
Delete a label