MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Object functions  ObjectDelete

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
bool ObjectDelete( string name)
Deletes object having the specified name. If the function succeeds, the returned value will be TRUE. Otherwise, it will be FALSE.
To get the detailed error information, one has to call the GetLastError() function.
Parameters:
name   -   Name of the object to be deleted.
Sample:
ObjectDelete("text_object");