MATLAB Function Reference    
delete (timer)

Remove a timer object from memory



delete(obj) removes timer object, obj, from memory. If obj is an array of timer objects, delete removes all the objects from memory.

When you delete a timer object, it becomes invalid and cannot be reused. Use the clear command to remove invalid timer objects from the workspace.

If multiple references to a timer object exist in the workspace, deleting the timer object invalidates the remaining references. Use the clear command to remove the remaining references to the object from the workspace.

See Also

clear, isvalid, timer

  delete (serial) demo