I'm having issues deleting a setup user account in 10.14+. After imaging completes, I have a script running the following:
!/bin/sh
/usr/local/bin/jamf deleteAccount -username admin -deleteHomeDirectory
exit 0
but it doesn't work. I'm looking for a simple script that I can run that will delete the user on logout. Does anyone have success with this and how did you do it, please?
