Type the following command to confirm the drive still selected and press Enter:
Type the following command to wipe out the drive and press Enter: If you do not perform this step correctly, you could erase the wrong drive. In the command, replace DISK-NUMBER with the drive number you want to repair as it appears in the 'Disk' column. Type the following command to select the drive that you want to clean and press Enter: Type the following command to list all the active drives and press Enter: Type the following command to run DiskPart and press Enter: Search for Command Prompt, right-click the top result, and select the Run as administrator option.
To use DiskPart to fix storage drive issues on Windows 10, use these steps: How to fix drive problems with DiskPart on Windows 10