We're using erase-install v.28.1 and in testing so far it's been great, really enjoying the new script and swift GUI. I want to know if anyone else has used this or something similar in conjunction with a terminal command to delete the machine calling the script from Jamf.
In this use case, the machine in question has a Self Service button to initiate a Factory Wipe, and we would like to call --postinstall-command that essentially runs: sudo jamf delete_computer ID=XXX where the machine we're running the command from is the one in question. I've tested a few 1 line commands in " "s and they work, but I've not tried including a small script inside yet. Unless there is an already easy way to show the machine's ID in a single line, I figured it would have to be nested in a small script, I just haven't put down the time yet to test, curious if anyone else has already done this or something similar.