public function delete()
    {
        $url = $this->getEntityUrl() . $this->id;
        $r = new Request();

        return $r->request(Requests::DELETE, $url);
    }
public function delete()
    {
        $url = $this->getEntityUrl() . $this->id;
        $r = new Request();

        return $r->request(Requests::DELETE, $url);
    }
public function delete ( ) { $ url = $ this -> getEntityUrl ( ) . $ this -> id ; $ r = new Request ( ) ; return $ r -> request ( Requests :: DELETE , $ url ) ; }
Deletes drafted invoice

@return Invoice
Deletes drafted invoice