You can use the Wipe All command in DiskPart to write over all data on a drive. Start DiskPart with administrator rights. Show available disks and select the USB stick Wipe all data Create partition and format the disk
Tag: diskpart
WSL Ubuntu Reclaim Space on Vdisk Image Using Diskpart in Windows
Possible Disk Image locations If using Docker Desktop, exit the program and shutdown WSL(use terminate if wsl starts up again automatically), check nothing is running Start Diskpart with elevated privileges Attach the image file and compress the image
Format Windows HDD With Command Line Using Diskpart
Start DISKPART via the command prompt with administrator rights Show disks Select a disk Show partitions if necessary Clean the HDD, erasing data and partitions Create a new partition Format the drive