Default Restore to factory with root?

I have a dev edition currently on 4.4.2 and seeing as how I cant use the nice script thats out there to restore it can someone reccomend the best , easiest way to do this?