The simplest way to wipe your PC to donate, recycle, or sell your PC, is to use the Windows 10 | 11 Reset option
Windows 10
Settings > Update & Security > Recovery
Click ‘Get started’ under ‘Reset this PC’
Windows 11
Settings > Windows Update > Advanced options > Recovery
Click ‘Reset PC’
When ‘Reset this PC’ dialog opens, click ‘Remove everything’
Click reinstall Windows from ‘Cloud download’ or ‘Local reinstall’ (faster)
In ‘Additional settings”