From Scratch Meaning

(idiomatic) From basic materials or raw ingredients.

Example:   There were so many errors in the program that the programmer decided to rewrite it from scratch.
  When the writer finished writing his book, it was stolen and now he has to rewrite it from scratch.
  He had no money and no rich friends, so he had to build his business from scratch.
1980, Cosmos, Carl Sagan
  If you wish to make an apple pie from scratch, you must first invent the universe.
  She said she wanted to build a new house from scratch.
  He was out of pancake mix so he had to make the batter from scratch.
2002, The New Yorker
  He sat there Friday night and built an entire model ship from scratch.