It would be fairly easy to reset your account to defaults, but if the script deleted your home folder you'd loose everything in it.
And if it simply renamed your home folder then created a new one (and copied the contents of /etc/skel to it), then effectively it'd be the same as just creating a new account.
We'd never include this as a script because of the damage it could do if used inadvertently .. it'd basically be a bomb waiting to get triggered .. nuke and pave SHOULD be difficult.
Such a script is not going to help unless you can log in via a console and gain administrative privileges .. and if you can do that, it'd be easy enough to just create a new account.
If the issue is outside your home folder, again you'd still need to be able to gain admin privileges, and a script that reset the entire system would be downright dangerous if it could be run from within the currently booted OS. And if it required booting to another environment (ensuring it can only be done by someone with local access) technically that already exists .. it's called a LiveUSB

I can't help but think of one of those BIG red buttons with
DON'T PRESS written on it
