Remove user-data

How do you delete user-data from a call using soft-phone or URS?

In the softphone you can use something like the following. (This is not compiled code )

Dim MykeyPair as CTKVPair
Dim MyUdata as CTKVList
Dim KeyPairCount as Integer
Dim i as integer

KeypairCount =MyUdata.GetCount

For i = 0 to KeyPairCount

// This will Delete all
Set MyKeyPair = MyUdata.Delete(i)

//This will delete particular
If MyKeyPair.Key = “The One to Delete” then
MyUdata.Delete(i)

Next i

2 Likes

If you are using URS, you can issue Update[‘keyname’,‘’] to delete it. It will not remove the key, but it will remove the value.
I think there is a way to remove the key altogether, but I don’t know how to do it it. Any suggestions?
:-[