Skip to main content
Question

Removal of Jamf Remote policies

  • September 24, 2025
  • 4 replies
  • 70 views

Forum|alt.badge.img+9

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

 

4 replies

PMullins1
Forum|alt.badge.img+13
  • Jamf Heroes
  • September 24, 2025

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


PMullins1
Forum|alt.badge.img+13
  • Jamf Heroes
  • September 24, 2025

Forum|alt.badge.img+9
  • Author
  • Contributor
  • September 25, 2025

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.

 


Forum|alt.badge.img+9
  • Author
  • Contributor
  • September 25, 2025

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