Skip to main content

<Unset>

The <Unset> verb allows the developer to delete a variable.

<Unset> Attributes

<Unset> supports the following attributes that change its behavior:

AttributeAllowed ValuesDefault Value
historydisable, compact, fulldisable
outputstring (maximum 50 characters)none

history

The history attribute determines if the <Unset> verb should be logged in the history array of the CDR. The default is to not log.

For <Unset>, both compact and full have the same effect of logging the following payload to the history array.

{
"payload": {
"output": "menu"
}
}

output

The output attribute represents the variable's name.

<Unset> Examples

Simple Usage

Clear the menu variable and then redirect to the menu URL.

<Response>
<Unset output="menu"></Unset>
<Redirect>/menu</Redirect>
</Response>