Hello.
I have a profile script where I create a local variable using
user.setLocal('name', 'value');
Is it possible to remove this varialbe as if it was never created before instead of using this approach ?:
user.setLocal('name', undefined);
Solved! Go to Solution.
Views
Replies
Total Likes
@kirill_techZone AFAIK it isn't possible to remove/delete it. The alternative is as @Gokul_Agiwal is to set it with an empty string or set a 'null' value.
Could you elaborate more on the scenario why you want to remove this variable?
Have you tried with empty string like user.setLocal('name', ' ');
@kirill_techZone AFAIK it isn't possible to remove/delete it. The alternative is as @Gokul_Agiwal is to set it with an empty string or set a 'null' value.
Views
Like
Replies
Views
Likes
Replies
Views
Likes
Replies