UnsetUserVar

Use [Twitch](/api/csharp/twitch/globals) and [YouTube](/api/csharp/youtube/globals) methods instead

Signature

public void UnsetUserVar(string userName, string varName, bool persisted = true)

Parameters

userName
string required

No description provided.

varName
string required

The string name of the global variable

persisted
bool
Default:
True

To get, set, or unset persisted global variables, set to true or leave empty.

To get, set, or unset temporary/non-persisted global variables, set to false.

Return Type

void

Example

CPH.UnsetUserVar(userName, varName);
CPH.UnsetUserVar(userName, varName, persisted);