public function delete(CustomField $customField): void
    {
        $id = $customField->getId();

        $customField->setId(null);

        $this->client->delete($this->prepareUrlForKey('delete-custom-field', ['id' => $id]));
    }
public function delete(CustomField $customField): void
    {
        $id = $customField->getId();

        $customField->setId(null);

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

@param CustomField $customField The custom field to delete
Deletes the given custom field .