public function delete(Lead $lead): void
    {
        $id = $lead->getId();

        $lead->setId(null);

        $this->client->delete($this->prepareUrlForKey('delete-lead', ['id' => $id]));
    }
public function delete(Lead $lead): void
    {
        $id = $lead->getId();

        $lead->setId(null);

        $this->client->delete($this->prepareUrlForKey('delete-lead', ['id' => $id]));
    }
public function delete ( Lead $ lead ) : void { $ id = $ lead -> getId ( ) ; $ lead -> setId ( null ) ; $ this -> client -> delete ( $ this -> prepareUrlForKey ( 'delete-lead' , [ 'id' => $ id ] ) ) ; }
Deletes the given lead.

@param Lead $lead The lead to delete
Deletes the given lead .