Mass delete of policies

rkovelman
New Contributor III

Does anyone have any ideas on how to mass delete old policies? I would like to delete some policies that have no use anymore and it is painful to go into each to delete or disable. Looking for a way for a way to make a mass change of delete and or disable.

Thanks!!

1 REPLY 1

Tangentism
Contributor III

This is when you discover how to use the API!

https://developer.jamf.com/documentation

If you know the IDs of the policies you want to delete (Use one of @mm2270's scripts on Github to get policy info) then you can feed that to the API to delete the policies.