Wiping
How to wipe a laptop or PC before you sell, donate or recycle it
Back up, sign out, then use the built-in reset in Windows or macOS with the right options. Plus when a built-in reset isn't enough and you need a drive eraser or physical destruction.