ObjectsDeleteAll MQ5

 
Please, where should I write the mq5 code to remove all objects when removing the Expert from the graph?
 
I think inside OnDeinit().
 
solved thank you very much