public function delete($idOrKey, $deleteSubtasks = false)
    {
        $parameters = sprintf('?deleteSubtasks=%s', $deleteSubtasks);

        return $this->deleteRequest(sprintf('issue/%s%s', $idOrKey, $parameters));
    }
public function delete($idOrKey, $deleteSubtasks = false)
    {
        $parameters = sprintf('?deleteSubtasks=%s', $deleteSubtasks);

        return $this->deleteRequest(sprintf('issue/%s%s', $idOrKey, $parameters));
    }
public function delete ( $ idOrKey , $ deleteSubtasks = false ) { $ parameters = sprintf ( '?deleteSubtasks=%s' , $ deleteSubtasks ) ; return $ this -> deleteRequest ( sprintf ( 'issue/%s%s' , $ idOrKey , $ parameters ) ) ; }
Deletes an issue by id or key

@link https://docs.atlassian.com/jira/REST/latest/#d2e1401

@param  integer|string  $idOrKey
@param  boolean         $deleteSubtasks

@return \GuzzleHttp\Message\Response
Deletes an issue by id or key