from scratch
verb
°From the beginning; starting with no advantage or prior preparation.
"There were so many errors in the program that the programmer decided to rewrite it from scratch."
"He said he wanted to build a new house from scratch."