Under Settings > System > Recovery > Reset PC, in Windows 11. Select Remove everything to reset the computer. Windows 11 provides the cloud download of a new OS installation. The technique corrects the problem in performance, eliminates malware and puts the system back to normal.

For more read - https://datarecovee.com/how-to-factory-reset-pc/