Crash when clearglobal used in a function (scilab 2024)

I have come across a problem of windows forcing to close scilab 2024 version when I try to use “clearglobal variable Name” command in a function as variable_Name has been declared global in main program script.
Can anyone help on this issue?

Hello, and welcome to Scilab’s Discourse !

Can you provide a simple example (with code) ?

S.