You create an account on a new computer to install applications and updates. Before finishing, you want to delete the user and reset Setup Assistant.
launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServicesLocal.plist
dscl -f /var/db/dslocal/nodes/Default
delete admin GroupMembership
delete staff GroupMembership
rm -rf /Users/updateuser