Back up any important data from the drive
Open Disk Management on Windows or Disk Utility on macOS
Select the drive you want to format
Choose the format or file system you need
Set a volume name if required
Confirm that you want to erase or format the drive
Wait for the formatting process to complete
Safely eject or close the drive when finished
