For the record, the reset option which Local Host was talking about will be more effective when it comes to erasing data than using the Windows installation media and "formatting" the drive (depending on how you're doing it).
The reason why is because when Windows deletes a file, it isn't really "deleting" the file - you're supposed to believe that the file is "deleted" because you can no longer locate or access the contents of the file by normal means. What really happens in the background is the space which the file was using up is being marked as "free", which means when you have other data being saved, Windows knows that it now has more space to store data. Eventually, the data which the "deleted" file was using up will be overwritten by data for something else (e.g. a new file).
All in all, this is why when you're using the Windows installation media, it can quickly format a drive. It will feel magical, like Microsoft invented a special secret algorithm for doing it to a drive consisting of over 200GB of used space. Nope. It didn't happen. The data still exists and the data is still recoverable by both manual and automatic forensics.
However, when you choose the reset option to literally wipe all your files from the Windows recovery, it may feel like it is taking absolutely forever... I've seen it take well over 5 hours before. It's because it isn't simply "deleting" the file, the data is actually being overwritten X (X = unknown in this instance) amount of times, thus making it much harder to recover the original contents (because it no longer "exists" in the same way as a normally "deleted" file). Microsoft 100% definitely do this for the option which implies you'll be passing the system on to someone else (e.g. selling it).
Windows knows which data is free and can be used for new data thanks to how the NTFS system works, and the Volume Boot Record (VBR) comes to play with all of this. The VBR is used to tell Windows where "files" are located (the data). This is also why... ransomware attacks like Petya which encrypt the VBR will prevent Windows from knowing where your files are (it will not even know which files there are) and hence Windows itself cannot load.
Government agencies usually use similar file erasing tactics to make recovery near to impossible or literally impossible with the technology we have in this current day and age - and even if it was possible, it would take far too long manually to recover huge GBs of data which has been deleted and suppressed by such file erasure tactics.
One really famous file erasing technique would be the "Gutmann method" which consists of 35 passes on the file with randomly generated junk. Other algorithms would be "US DOD 5220.22-M (8-306. C)" and "US DOD 5220.22-M".
Data can never be deleted because the hard-drive/SSD doesn't have a dustbin which it can throw things into for you to dispose of manually and "deleted" data doesn't just disappear into thin air. It has to be overwritten with something. Old data which is no longer needed and is marked as free is how we determine "how much storage" we have left available for new data (e.g. new documents) and thus the process just repeats in a cycle.
Solid State Drive's work differently to a Hard-Disk when it comes to file management for removal... I do not know enough about SSDs and this process specifically therefore you should take this with a grain of salt when thinking about an SSD. For once, there are no moving parts on an SSD, and they tend to be "flash" based. They work differently.