Back up all important data from the hard drive
Connect the hard drive to the computer
Open Disk Management on Windows or Disk Utility on macOS
Select the hard drive you want to format
Choose the format or file system you want to use
Delete existing partitions if needed
Create a new partition if required
Start the format process
Wait for the formatting to complete
Safely eject or disconnect the hard drive
