When disposing of an old computer, it's important to securely wipe the hard drive to protect sensitive information.
To wipe a hard drive on Windows, connect it to a computer and open File Explorer. Right-click the drive, click Format, uncheck Quick Format, and click Start. This will overwrite every bit of the drive.
On a Mac, open Disk Utility, select the drive, click Erase, and click the Security Options button. Choose the number of passes to overwrite the drive.
Note that the wiping process can take hours, especially for larger drives. However, it ensures that files are difficult to recover.