Type diskpart and press Enter. Accept the UAC prompt.
Open File Explorer (Windows key + E).
Type cmd in the search bar. Right-click Command Prompt → Run as administrator . how to format a drive in windows 10
Formatting a drive prepares it to store data by creating a file system. It’s essential for new drives, cleaning an old drive, or changing a file system (e.g., from FAT32 to NTFS). Warning: Formatting erases all data on the drive. Always back up important files first. Type diskpart and press Enter