I have over 400 devices I am trying to remove from my JSS using the JAMF API and it doesn't seem to be doing anything. Would greatly appreciate any thoughts. See the script below:
#!/bin/sh
NUMBERS="path/to/file.txt"
/bin/cat $NUMBERS | while read SERIAL; do
/usr/bin/curl -X DELETE -u *username*:*password* https://jssurl:8443/JSSResource/mobiledevices/serialnumber/$SERIAL 2>/dev/null
done
exit 0