How to Delete Smart Device Group?

jpblock82
New Contributor

I'm needing to delete a ton of Smart Device Groups but they all have apps associated to them.  How can I delete these groups without having to go into each one and remove the apps first.  I have 80+ groups and do not want to do each one manually.

1 ACCEPTED SOLUTION

AJPinto
Honored Contributor II

Unfortunately, you can't. You will need to do this one by one, eventually you will get it done.

View solution in original post

2 REPLIES 2

sdagley
Esteemed Contributor II

@jpblock82 You'll have to delete the reference to a Smart Group from anything that depends on it before you can delete the group. If the items with dependencies are disable you may be able to use https://github.com/BIG-RAT/Prune to delete the objects. Once the Smart Groups aren't referenced by anything Prune will allow you to remove them in bulk as well.

AJPinto
Honored Contributor II

Unfortunately, you can't. You will need to do this one by one, eventually you will get it done.