Forum Discussion

BrianG's avatar
6 years ago

Scripts for deleting datasource instances

Does anyone have any scripts that remove datasource instances using LM's API?

4 Replies

Replies have been turned off for this discussion
  • Hey @BrianG, I don't have a script for you, but I wanted to see if you could expand on this. Are you clearing out old instances or something? AD filters and instance deletion options should be able to solve most instance deletion needs, so I'm curious about what's going on on your environment.

  • Hey @Michael Rodrigues, we have instances that were discovered via netscan but they're sitting at the root level.  Is there an efficient method of removal?

  • Hey @BrianG, you're talking about device instances, right? If they share a common property or name you can make a Dynamic Group that holds them all, then deletes that group. When you delete it, you can delete the devices from the account along with it.