format a disk code example
Example: format disk
1. Run Diskpart as administrator.
2. Type the following commands and hit Enter after each command.
list disk
select disk n
# n refers to the disk number of the disk that you need to clean
clean
create partition primary
format fs=ntfs quick
assign drive letter=f
exit