Delete is used to delete a specified event from the event Log.
The following is an example for using Delete:
logging_handle.call('Delete', {'Type': u'Log', 'Data': {'id': log_id,}})
The following table summarizes the specification of Delete:
| Interface | IDataSource |
| Description | Deletes events in the event log. |
| Response Model | Synchronous and asynchronous |
| Pre-condition | IDataSource interface is loaded. |
| Post-condition | Nil |
Input Parameters
Input parameter specifies the Type and its Id for performing the delete operation.
|
Output Parameters
Output contains ErrorCode and ErrorMessage, if the operation fails.
|
Errors
The following table lists the error codes and their values:
|
Error Messages
The following table lists the error messages and their description:
|
Example
The following sample code illustrates how to delete an entry from the log:
import scriptext
logging_handle = scriptext.load('Service.Logging','IDataSource')
logging_handle.call('Delete', {'Type': u'Log', 'Data': {'id': log_id,}})
See About this document... for information on suggesting changes.