https://it.mathworks.com/help/simulink/slref/simulink.data.dataconnection.clearall.html
clearAll - Remove variables from connected data source - MATLAB
This MATLAB function removes the variables from the connected data source connectionObj.
connected dataclearallremovevariablessource