public function deleteTag($id, $tag, $identifyBy = "email")
    {
        $request = new Request('subscribers');
        $request->setQuery(['identified_by' => $identifyBy]);
        $request->setIdParam($id);
        $request->addSubresource(['name' => 'tags', 'id' => urlencode($tag)]);

        $response = $this->client->delete($request);

        $this->assertSuccessResponse($response);

        return $response->getData();

    }
public function deleteTag($id, $tag, $identifyBy = "email")
    {
        $request = new Request('subscribers');
        $request->setQuery(['identified_by' => $identifyBy]);
        $request->setIdParam($id);
        $request->addSubresource(['name' => 'tags', 'id' => urlencode($tag)]);

        $response = $this->client->delete($request);

        $this->assertSuccessResponse($response);

        return $response->getData();

    }
public function deleteTag ( $ id , $ tag , $ identifyBy = "email" ) { $ request = new Request ( 'subscribers' ) ; $ request -> setQuery ( [ 'identified_by' => $ identifyBy ] ) ; $ request -> setIdParam ( $ id ) ; $ request -> addSubresource ( [ 'name' => 'tags' , 'id' => urlencode ( $ tag ) ] ) ; $ response = $ this -> client -> delete ( $ request ) ; $ this -> assertSuccessResponse ( $ response ) ; return $ response -> getData ( ) ; }
Removes subscriber tags

@link https://rule.se/apidoc/#subscribers-delete-subscriber-tag-delete

@param $id
@param $tag
@param string $identifyBy
@return array
@throws \Exception
Removes subscriber tags