Delete Method (UtilLog)
- Last UpdatedNov 06, 2025
- 1 minute read
The Delete() method is maintained for compatibility with MES versions prior to 6.0. For new projects, this method should not be used. Instead, use the Delete() method in the UtilHistory class.
The Delete() method deletes the specified utilization event. The previous event is extended until the end time of the event being deleted.
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- logId
- Required. Holds the ID of the event history record to be deleted.
The parameters for this method must pass a value. They cannot be empty or null.
The Delete() method causes the previous event's duration to be extended to fill the gap caused by the deleted event. This is unlike deleting an event by adjusting its duration to 0, as can be done with the AdjustDuration() method, which causes the following event to be extended to fill the gap.