This is why you should use source control and constantly save.
That's also a possibility, and even if it did "delete" all the files they would be stored in a folder called "Windows.old" on the main HDD.
Windows updates don't delete any data.