Back up all important data
Connect the hard drive to the computer
Open Disk Management on Windows or Disk Utility on macOS
Select the target hard drive
Delete existing partitions if needed
Create a new partition or volume
Choose the file system format
Start the format process
Confirm the warning prompt
Wait for the formatting to complete
Safely eject or disconnect the drive
Restore your data if needed
