ad 1: SWIS, taken as query engine is really read-only, but provide interface for calling the operations, which have Create, update, delete nature. Those operations must be implemented on different layer (not on SWIS side), so this is the reason why typically newer product versions support such operations on more types of objects
ad 2.Depends on case by case, but e.g. if you delete the Node via API, it deletes also it's interfaces, volumes, pollers. Regarding the historical data, the daily DB maintenance will take care about them.
Have a look at this:
I'm using a modified version of one of the sample scripts to copy node information from my old environment to my new one. There may be a sample in the SDK for deletions also.
If you mean the powershell example, the deletion syntax is the same for all types of objec. You just need to create connection and know the uri of the object (unique identifier). e.g.:
$swis = Connect-Swis -hostname 'localhost' -username "admin" -password "123" #create connection [System.String]$uri = get-swisdata "select top 1 uri from orion.nodes" #get uri Remove-SwisObject $swis $uri #delete object
Many thanks to all who responded. If, when a node is deleted via API, its interfaces, volumes, etc. are also automatically deleted, that is main reason for my post.