> For the complete documentation index, see [llms.txt](https://osd.osdeploy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osd.osdeploy.com/docs/trash/disk/clear-usbdisk.md).

# Clear-USBDisk

This function will clear the USB Drives.  You can optionally **`Initialize`** and specify a **`PartitionStyle`**.  The **`-Force`** parameter is required to actually do the work.  When this parameter is not used, Get-Help will be displayed, as well as the returned **`Get-USBDisk`** results

![](/files/-MV2W2Aedgkfweil5cp2)

You will be prompted to confirm Clear-Disk for each USB Drive. To fully automate things, use the following command

```
Clear-LocalDisk -Force -Confirm:$false
```
