# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://osd.osdeploy.com/docs/trash/disk/clear-usbdisk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
