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
Select the partition style if prompted
Confirm that you want to erase or format the drive
Wait for the formatting process to complete
Safely eject or disconnect the drive when finished
