To restore a customised and updated machine so that it looks as if it's never been booted:
Boot to single-user mode
> mount -uw /
> rm -rf /Users/* /var/db/netinfo/local.nidb /var/db/.AppleSetupDone /Library/Preferences/* /Library/Caches/*
> shutdown now