title: How would I write a script for OS X 10.9 that removes all users and restarts the initial setup?
body: <p>I am wondering how I could write a script that removes all users/data on a machine running OS X 10.9 and restart the setup assistant. Any help would be great, thanks!</p>
  
  <p>Edit: I work in a repair shop and we often set up test users to check a repair is successful. It would be nice if we could just remove this test user rather than having to perform an erase and install each time.</p>