On Windows 10, you can use the Reset this PC feature to secure-erase the computer if you plan to decommission it after ...
It's a good idea to backup the files on your Windows 10 computer for safekeeping, in case you lose them for any reason.