How to use DiskPart to clean and format drive not working on Windows 10

On Windows 10, you can use DiskPart on Command Prompt to clean and properly format a hard drive to fix data corruption and other issues to make the storage usable again.

How to use DiskPart to clean and format drive not working on Windows 10