Make sure your computer remains plugged into an AC outlet during this process. This step will take some time, depending on your computer's hardware capabilities and your internet connection speed.
Partitioning your system's hard drive with Boot Camp Assistant may erase all files.