Skip to main content

I am looking for a script to remove old Jamf remote policies from Jamf cloud. We have several hundred of them I discovered after running Kmart tool.

 

I found this one but I cannot get it to work. https://www.elliotjordan.com/posts/remove-remote-policies/

 

Thanks

 

Someone will correct me I’m sure, but I believe you need to add a bearer token for API calls.


Changes to Classic API authentication in Jamf Pro - what you need to know


That may work on the bash script referenced in the post above. https://github.com/talkingmoose/Jamf-Scripts/blob/master/DeleteCasperRemotePolicies.sh . But the script above is using the jamf_pro_sdk which i’m not very familiar with. I did find that changing the “PromptForCredentials” to “prompt_for_credentials” at least allowed the script to partially work. But then the script throws a bunch of errors. I was hoping someone might have an updated script to accomplish this.

 


I got it working using the API token and the shell script. Thanks!