system.historian.deleteAnnotations
This function is used in Python Scripting.
Descriptionβ
Deletes desired annotations from the specified historian.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.historian.deleteAnnotations(paths, storageIds)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| List | paths | A list of historical paths associated with the annotations. See Path Syntax for more information on recommended syntax. |
| List | storageIds | A list of annotation storage IDs to be used for deleting. |
Returnsβ
List - A list of QualityCode objects. The quality code will indicate success or failure, and if successful, the storage ID of the annotation will have been deleted.
Scopeβ
Gateway, Vision Client, Perspective Session
Code Examplesβ
Code Snippet
# Delete a previously stored annotation and log an info level formatted message.
paths = ["histprov:MySQL:/sys:gw1:/prov:default:/tag:history_200"]
storageIds = ["1f001108-5689-4b2a-b995d360250a"]
result = system.historian.deleteAnnotations(paths, storageIds)
system.util.getLogger('HistorianTest: deleteAnnotations').info(str(result))