Disconnect the hard drive’s power supply, then remove the drive.
Instruct the operating system to eject the drive before unplugging it.
Use the Power button to turn off the computer, then remove the drive.
Wait until the drive stops spinning, then remove the drive.