Delete old files before writing new

Deletes all old files before writing new files to make sure everything
is fresh and an exact clone.