Want to wipe your pen drive for reuse or disposal? Learn how to completely erase a USB drive on Windows and Mac below.
Protecting personal and sensitive data? Preparing a USB pen drive for resale or reuse? Removing malware and corrupted data on your flash drive? In this guide, you’ll learn effective methods to erase a pen drive on Windows and Mac.
Wiping a pen drive permanently removes all data, so a little preparation can save you from costly mistakes. Before you begin, take the following steps to ensure the process is safe and effective:
✅ Back up important files first. Once a pen drive is wiped, the data cannot be recovered. Check the drive carefully and copy any important documents, photos, or software installers to another secure location.
✅ Confirm the correct pen drive. If multiple storage devices are connected to your computer, double-check the drive letter and capacity. Wiping the wrong drive can result in permanent data loss.
✅ Check for write protection. Some pen drives have a physical lock switch or software-based write protection. Disable it beforehand, or the wipe process may fail.
If you want to wipe pen drive data on a Windows PC, there are several effective methods available. The right choice depends on whether you need a quick cleanup or a secure, unrecoverable erase. Below are three commonly used methods, from professional software to built-in Windows tools.
For users who need a secure and reliable way to clear a USB drive, professional wiping software is the best option. AOMEI Backupper Professional is primarily known as a powerful backup and restore utility for Windows, but it also includes a built-in Disk Wipe feature that securely erases data beyond recovery.
Download AOMEI Backupper now and follow the steps below to completely erase a USB drive:
Step 1. Connect the USB drive to your computer and launch AOMEI Backupper Professional. From the main interface, click Tools and select Disk Wipe.
Step 2. In the pop-up window, select Wipe disk from the drop-down menu. Then click on the flash drive that needs to be wiped and click Next.
Step 3. Choose a wiping method based on your need and click Start to begin the wiping process.
💡 Note: Stronger erasure methods take longer because they overwrite data more times to ensure it is irrecoverable.
Formatting is the quickest way to clear a USB drive in Windows and is built directly into File Explorer. It removes all visible files and resets the file system, making the pen drive ready for reuse. Learn how to use it below:
Step 1. Insert the USB drive into your computer.
Step 2. Open File Explorer and locate the USB drive under This PC.
Step 3. Right-click the USB drive and select Format.
Step 4. Choose a file system (NTFS, FAT32, or exFAT). Then click Start and confirm to begin formatting.
💡 Note: The Quick Format option is checked by default for fast wipe. If you want to sell or abandon your USB drive, please uncheck the option for a more thorough wipe, which will scan your USB drive for errors and write zeros over data.
For advanced users, Command Prompt provides a more powerful way to erase a pen drive using the DiskPart utility. This method can remove all partitions and clean the drive at a deeper level than simple formatting. Just follow the steps below:
Step 1. Plug in your USB drive.
Step 2. Press Win + S, type cmd, right-click Command Prompt, and choose Run as administrator.
Step 3. Type the following commands and press Enter after each.
Step 4. (Optional) If you want to make the USB drive usable again, continue to type the following commands:
Step 5. Close Command Prompt when all operations are done.
Disk Utility is the default disk management tool on macOS. It allows you to erase a pen drive, change its file system, and apply security options to prevent data recovery. Follow the guidance below to wipe a pen drive using Disk Utility:
Step 1. Insert the pen drive into your Mac.
Step 2. Open Finder > Applications > Utilities > Disk Utility.
Step 3. In the sidebar, select the pen drive (choose the device, not just the volume). Then click Erase at the top.
Step 4. Enter a name for the drive and choose a format (exFAT or FAT32 for cross-platform use).
Step 5. Click Erase to start the process and wait for it to finish.
💡 Note: You can click Security Options to set the number of write passes that are made on the selected volume, ranging from a quick zero-fill (Security Option 1) to multiple passes of random data for higher security (Security Option 3 or 4).
When wiping a pen drive, you may encounter errors from hardware, system restrictions, or corruption. Here are the most common issues and their fixes.
🎯 Pen drive is write-protected
If you see a write-protection error, check whether the pen drive has a physical lock switch and turn it off. On Windows, you can also use DiskPart to remove write protection by selecting the disk and running the attributes disk clear readonly command.
🎯 Pen drive not detected by the system
When your computer doesn’t recognize the pen drive, try plugging it into another USB port or another computer. If it doesn’t appear in File Explorer but in Disk Management, you can format it in Disk Management. Outdated USB or chipset drivers can also cause detection issues, so updating drivers may help.
🎯 Format or wipe process fails or freezes
A failed wipe process is often caused by bad sectors or file system corruption. Try using Command Prompt or a professional wiping tool instead of File Explorer. If the process freezes, safely cancel it, reconnect the drive, and try again with a different method.
Now you know how to wipe a pen drive on Windows and Mac. By preparing the drive correctly and choosing the right method, you can erase data reliably and avoid common errors. Actually, AOMEI Backupper is not only powerful disk wipe software but also specialized backup software. You can use it to backup Windows 11 to external hard drive for OS protection. Why not give it a try?