Universal Data Destruction Software | Complete Drive Wiping | Anti-Forensic Data Protection | CyberSecurity Tool
Created by Md Zarif Azfar - Professional data privacy solution for secure drive destruction before selling devices. Protect your digital privacy with military-grade data wiping.
SecureWipe is the ultimate data privacy tool that provides complete drive destruction for USB, internal, external, SSD, and HDD drives. Fills drives with realistic garbage files using anti-forensic techniques to prevent data recovery. NEW: Complete drive destruction mode for maximum security on any drive type (4GB to multiple TB).
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "SoftwareApplication", "name": "SecureWipe", "description": "Professional data destruction software for complete drive wiping. Anti-forensic data protection for USB, SSD, HDD drives. Military-grade cybersecurity tool for data privacy and secure deletion.", "author": { "@type": "Person", "name": "Md Zarif Azfar", "url": "https://github.com/zaryif" }, "url": "https://github.com/zaryif/securewipe", "applicationCategory": "SecurityApplication", "operatingSystem": ["Windows", "Linux", "macOS"], "programmingLanguage": "Python", "license": "https://opensource.org/licenses/MIT", "keywords": "data privacy, data security, drive wiping, data destruction, anti-forensic, cybersecurity, secure deletion, USB wipe, SSD wipe, drive eraser, data protection", "offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" } } </script>Keywords: data privacy, data security, drive wiping, data destruction, anti-forensic, cybersecurity, secure deletion, USB wipe, SSD wipe, drive eraser, data protection
Primary Category: Security Software
Secondary Categories: Data Privacy, CyberSecurity, Data Recovery Prevention
As a solo developer passionate about digital privacy, I became increasingly concerned about how easily deleted files can be recovered from sold devices. When you "delete" a file, it's not actually gone - the operating system just marks that space as available, but the data remains until it's overwritten.
I discovered that professional data recovery tools can reconstruct:
- Deleted photos and videos from "free space"
- Personal documents and financial information
- Browser history and passwords
- Sensitive work files and personal data
The Problem: Existing solutions were either too complex, expensive, or didn't provide the level of security I needed for complete data destruction.
My Solution: I built SecureWipe as a comprehensive, cross-platform tool that:
- Works on Windows, Linux, and macOS
- Supports all drive types (USB, internal, external, SSD, HDD)
- Provides both standard free-space wiping and complete drive destruction
- Uses realistic file signatures to trick recovery tools
- Is completely free and open source
My Mission: To provide everyone with a professional-grade data privacy tool that ensures complete data security when selling or disposing of devices. This isn't just a project for me - it's a commitment to digital privacy and security for all users.
Solo Development: SecureWipe is developed and maintained entirely by me, Md Zarif Azfar. I handle all aspects of development, testing, documentation, and support to ensure this tool meets the highest standards of data security and user experience.
When you delete files and sell your laptop or computer, the data is not truly gone. Recovery tools can:
- Reconstruct deleted photos, videos, and documents from "free space"
- Recover thumbnail previews of your private images
- Find fragments of personal documents, bank statements, passwords
SecureWipe solves this by overwriting every byte of free space with garbage files that carry realistic file signatures. Recovery tools will find thousands of fake JPEGs, fake videos, and fake PDFs — but none of your real data.
Before SecureWipe: [your deleted photos] [deleted videos] [deleted docs] [free space...]
After SecureWipe: [fake_0001.jpg] [fake_0002.mp4] [fake_0003.pdf] [fake_0004.jpg] ...
| Platform | Version | Status |
|---|---|---|
| Windows | 10, 11 | ✅ Supported |
| Linux | Ubuntu, Debian, Fedora, Arch, any | ✅ Supported |
| macOS | 12 Monterey+ | ✅ Supported |
| Drive | Size | Notes |
|---|---|---|
| HDD (Hard Disk) | Any | Fully effective |
| SSD | Any | Effective + see Section 4 for extra step |
| External USB | Any | Plug in and run |
| SD Card | Any | Works the same way |
| NVMe SSD | Any | Effective + see Section 4 |
You need these tools installed first:
- PowerShell (built-in with Windows 10/11)
- Internet Connection (for downloading)
- Administrator Privileges (for some features)
Optional but Recommended:
- Winget (Windows Package Manager) - Download Guide
- Git for Windows - Download
- curl or wget (for downloading)
- bash (built-in on most Linux)
- sudo access (for package installation)
- Internet Connection
Install curl/wget if missing:
# Ubuntu/Debian
sudo apt update && sudo apt install curl wget -y
# Fedora/CentOS/RHEL
sudo dnf install curl wget -y # or: sudo yum install curl wget -y
# Arch Linux
sudo pacman -S curl wget
# OpenSUSE
sudo zypper install curl wget- curl (built-in with macOS)
- bash (built-in with macOS)
- Internet Connection
Optional but Recommended:
- Homebrew - Installation Guide
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Complete Installation Guide: docs/installation-guide.md
- Detailed Requirements: System requirements and prerequisites
- Platform-Specific Instructions: Windows, Linux, macOS setup
- Direct Download Links: All required tools with download URLs
- Troubleshooting: Common issues and solutions
- Verification: How to test your installation
Quick Troubleshooting: docs/troubleshooting.md
- Common Errors: curl, Python, permission issues
- Platform Problems: Windows PowerShell, Linux package managers
- Network Issues: Download failures, SSL certificates
- Performance Issues: Slow wiping, system responsiveness
Permission Issues: docs/permission-fixes.md
- Windows: PowerShell execution policy, administrator privileges
- Linux: Script execution, sudo access, file permissions
- macOS: Gatekeeper, SIP, Homebrew permissions
- Cross-Platform: Script execution, file/directory permissions
iwr -useb https://raw.githubusercontent.com/zaryif/securewipe/main/scripts/install_windows.ps1 | iexcurl -fsSL https://raw.githubusercontent.com/zaryif/securewipe/main/scripts/install_unix.sh | bashcurl -fsSL https://raw.githubusercontent.com/zaryif/securewipe/main/scripts/setup_complete.sh | bash# Option 1: One-liner install (recommended)
iwr -useb https://raw.githubusercontent.com/zaryif/securewipe/main/scripts/install_windows.ps1 | iex
# Option 2: Winget install
winget install Python.Python3
git clone https://github.com/zaryif/securewipe.git
cd securewipe
python securewipe.py
# Option 3: Chocolatey install
choco install python git
git clone https://github.com/zaryif/securewipe.git
cd securewipe
python securewipe.py# Option 1: One-liner install (recommended)
curl -fsSL https://raw.githubusercontent.com/zaryif/securewipe/main/scripts/install_unix.sh | bash
# Option 2: APT install
sudo apt update && sudo apt install python3 python3-pip git -y
git clone https://github.com/zaryif/securewipe.git
cd securewipe
python3 securewipe.py
# Option 3: Snap install (if available)
sudo snap install python
git clone https://github.com/zaryif/securewipe.git
cd securewipe
python3 securewipe.py# Option 1: One-liner install (recommended)
curl -fsSL https://raw.githubusercontent.com/zaryif/securewipe/main/scripts/install_unix.sh | bash
# Option 2: DNF install
sudo dnf install python3 python3-pip git -y
git clone https://github.com/zaryif/securewipe.git
cd securewipe
python3 securewipe.py
# Option 3: YUM install (older systems)
sudo yum install python3 python3-pip git -y
git clone https://github.com/zaryif/securewipe.git
cd securewipe
python3 securewipe.py# Option 1: One-liner install (recommended)
curl -fsSL https://raw.githubusercontent.com/zaryif/securewipe/main/scripts/install_unix.sh | bash
# Option 2: Pacman install
sudo pacman -S python python-pip git
git clone https://github.com/zaryif/securewipe.git
cd securewipe
python securewipe.py# Option 1: One-liner install (recommended)
curl -fsSL https://raw.githubusercontent.com/zaryif/securewipe/main/scripts/install_unix.sh | bash
# Option 2: Homebrew install
brew install python3 git
git clone https://github.com/zaryif/securewipe.git
cd securewipe
python3 securewipe.py
# Option 3: MacPorts install
sudo port install python3 git
git clone https://github.com/zaryif/securewipe.git
cd securewipe
python3 securewipe.py# Option 1: Pull and run
docker run --rm -v /path/to/wipe:/data securewipe:latest
# Option 2: Build and run
git clone https://github.com/zaryif/securewipe.git
cd securewipe
docker build -t securewipe .
docker run --rm -v /path/to/wipe:/data securewipeWindows:
# Download and install Python with one command
winget install Python.Python3Linux (Ubuntu/Debian):
sudo apt update && sudo apt install python3 python3-pip -yLinux (Fedora):
sudo dnf install python3 python3-pip -ymacOS:
# Option A — Homebrew (recommended)
brew install python3
# Option B — Download from python.org/downloadsOption A — Git:
git clone https://github.com/YOUR_USERNAME/securewipe.git
cd securewipeOption B — Download ZIP:
- Click the green Code button on this page
- Click Download ZIP
- Extract the ZIP
- Open the extracted folder
Windows (double-click or run in Command Prompt):
python securewipe.pyLinux / macOS:
python3 securewipe.pyThat's it. SecureWipe will detect your drive size, fill free space with garbage, then clean up.
Step 1 Open terminal/command prompt Step 2 Run one of these commands:
# Wipe free space on current drive
python securewipe.py
# Wipe specific drive (Windows)
python securewipe.py --path D:\
# Wipe specific drive (Linux/macOS)
python securewipe.py --path /mnt/olddrive
# 3-pass wipe (more thorough)
python securewipe.py --passes 3For ANY drive (USB, internal, external, SSD, HDD) - MAXIMUM SECURITY FOR SALE/DISPOSAL
The complete drive destruction mode provides maximum security by wiping the ENTIRE DRIVE:
- Delete All Existing Files - Removes ALL files and folders from drive
- Fill Entire Drive - Fills 95% of total capacity with realistic garbage files
- Final Complete Wipe - Removes all garbage files and wipes remaining space
- Verification - Ensures drive is completely clean
# Complete drive destruction (any drive type)
python securewipe.py --complete --path /path/to/drive
# Complete drive destruction with verbose output
python securewipe.py --complete --path /path/to/drive --verbose
# Windows complete drive destruction
python securewipe.py --complete --path D:\
# Linux complete drive destruction
python securewipe.py --complete --path /media/user/DRIVE
# macOS complete drive destruction
python securewipe.py --complete --path /Volumes/DRIVE
# Internal drive destruction (use with caution)
python securewipe.py --complete --path C:\ # Windows
python securewipe.py --complete --path / # Linux/macOS (requires sudo)- USB Drives: 4GB to 256GB+ USB sticks, external drives
- Internal Drives: C:, D:\ drives, /dev/sda1, etc.
- External Drives: Any mounted external storage
- SSD/HDD: Both solid-state and hard disk drives
- Network Drives: Mounted network storage (if writable)
Automatic optimization based on drive capacity:
| Drive Size | Category | File Sizes | Optimization |
|---|---|---|---|
| < 8GB | Small Drive | 512KB - 2MB | Smaller files for efficiency |
| 8-32GB | Standard Drive | 1MB - 5MB | Balanced performance |
| 32-128GB | Large Drive | 2MB - 10MB | Optimized for speed |
| 128GB+ | Extra Large Drive | 2MB - 10MB | Large chunks for efficiency |
Phase 1: Delete All Existing Files
- Removes ALL files and folders from drive
- Completely wipes existing data and directory structure
- Ensures no personal data remains on the drive
Phase 2: Fill Entire Drive with Garbage Data
- Fills 95% of total drive capacity with realistic garbage files
- Creates thousands of fake files with correct signatures
- Optimized file sizes based on drive capacity
- Real-time progress tracking for the entire drive
Phase 3: Final Complete Wipe
- Deletes all garbage files from Phase 2
- Runs final wipe pass to clean any remaining space
- Ensures complete data destruction
Phase 4: Verification
- Checks for any remaining files on the drive
- Reports final drive status
- Confirms drive is completely secure for disposal/resale
# Example: 16GB USB stick on Linux
python securewipe.py --complete --path /media/user/KINGSTON --verbose
# Example: 500GB internal drive on Windows
python securewipe.py --complete --path D:\
# Example: 1TB external drive on macOS
python securewipe.py --complete --path /Volumes/EXTERNAL_DRIVE --verbose
# Example: 256GB SSD on Linux
python securewipe.py --complete --path /mnt/ssd_drive- Automatic Size Detection: No manual configuration needed
- Capacity Optimization: Adjusts file sizes for maximum efficiency
- Progress Tracking: Real-time progress and completion status
- Verification: Ensures complete data removal
- Safe for All Drive Types: USB, internal, external, SSD, HDD
| Feature | Standard Wipe | Complete Drive Destruction |
|---|---|---|
| Process | Fill free space with garbage | Delete all files -> Fill entire drive -> Final wipe |
| Target | Free space only | ENTIRE DRIVE (all files + capacity) |
| Security | High | MAXIMUM - Complete destruction |
| Time | Faster | More thorough (complete drive) |
| Use Case | General drive cleaning | Drive disposal/resale - Complete security |
For USB drives of any size (4GB to 256GB+) - MAXIMUM SECURITY FOR SALE
The USB wipe mode provides maximum security by wiping the ENTIRE DRIVE:
- Delete All Existing Files - Removes all files and folders from USB
- Fill Entire Drive - Fills 95% of USB capacity with realistic garbage files
- Final Complete Wipe - Removes all garbage files and wipes remaining space
- Verification - Ensures USB is completely clean
# USB wipe (automatic size detection and optimization)
python securewipe.py --usb --path /path/to/usb
# USB wipe with verbose output
python securewipe.py --usb --path /path/to/usb --verbose
# Windows USB wipe
python securewipe.py --usb --path E:\
# Linux USB wipe
python securewipe.py --usb --path /media/user/USB_STICK
# macOS USB wipe
python securewipe.py --usb --path /Volumes/USB_STICKSecureWipe automatically detects USB size and optimizes accordingly:
| USB Size | Category | File Sizes | Chunk Size | Optimization |
|---|---|---|---|---|
| < 8GB | Small USB | 512KB - 2MB | 16MB | Smaller files for efficiency |
| 8-32GB | Standard USB | 1MB - 5MB | 32MB | Balanced performance |
| 32-128GB | Large USB | 2MB - 10MB | 64MB | Optimized for speed |
| 128GB+ | Extra Large USB | 2MB - 10MB | 128MB | Large chunks for efficiency |
Phase 1: Delete All Existing Files
- Removes ALL files and folders from USB drive
- Completely wipes existing data and directory structure
- Ensures no personal data remains on the drive
Phase 2: Fill Entire Drive with Garbage Data
- Fills 95% of total USB capacity with realistic garbage files
- Creates thousands of fake files with correct signatures
- Optimized file sizes based on USB capacity
- Real-time progress tracking for the entire drive
Phase 3: Final Complete Wipe
- Deletes all garbage files from Phase 2
- Runs final wipe pass to clean any remaining space
- Ensures complete data destruction
Phase 4: Verification
- Checks for any remaining files on the drive
- Reports final drive status
- Confirms USB is completely secure for disposal/resale
# Example: 16GB USB stick on Linux
python securewipe.py --usb --path /media/user/KINGSTON --verbose
# Example: 64GB USB drive on Windows
python securewipe.py --usb --path G:\
# Example: 256GB USB on macOS
python securewipe.py --usb --path /Volumes/USB_STICK --verbose- Automatic Size Detection: No manual configuration needed
- Capacity Optimization: Adjusts file sizes for maximum efficiency
- Progress Tracking: Real-time progress and completion status
- Verification: Ensures complete data removal
- Safe for All USB Types: Works with USB 2.0, 3.0, 3.1, USB-C
| Feature | Standard Wipe | USB Wipe |
|---|---|---|
| Process | Fill free space with garbage | Delete all files -> Fill entire drive -> Final wipe |
| Target | Free space only | ENTIRE DRIVE (all files + capacity) |
| Security | High | MAXIMUM - Complete destruction |
| Time | Faster | More thorough (complete drive) |
| Use Case | General drive cleaning | USB disposal/resale - Complete security |
python3 securewipe.py --passes 3python3 securewipe.py --verboseOptions:
--path PATH Path on the drive to wipe (default: current drive)
--passes N Number of overwrite passes (default: 1)
--usb USB wipe mode: Delete all files -> fill entire drive -> final wipe
--complete Complete drive destruction: Delete all files -> fill entire drive -> final wipe
--verbose Show detailed progress
--version Show version and exit
--help Show this help message
| Drive Size | Free Space | Estimated Time |
|---|---|---|
| 128 GB SSD | 50 GB free | ~5–15 minutes |
| 256 GB SSD | 150 GB free | ~15–30 minutes |
| 512 GB SSD | 400 GB free | ~30–60 minutes |
| 1 TB HDD | 800 GB free | ~1–3 hours |
| 2 TB HDD | 1.5 TB free | ~2–5 hours |
Times vary based on drive speed. SSDs are faster than HDDs.
When you delete a file, the operating system only marks the space as "available" — it does not erase the actual bytes. Recovery tools scan raw disk sectors, find known file signatures (magic bytes), and reconstruct the files.
SecureWipe writes thousands of fake files with correct magic bytes (the exact byte patterns recovery tools look for) but completely random content:
| Fake File Type | Magic Bytes | Why It Matters |
|---|---|---|
| JPEG photo | FF D8 FF E0 |
Tricks photo recovery tools |
| PNG image | 89 50 4E 47 |
Mimics real PNG files |
| MP4 video | 00 00 00 20 66 74 79 70 |
Looks like real video |
| PDF document | 25 50 44 46 (%PDF) |
Mimics real PDF |
| DOCX file | 50 4B 03 04 |
ZIP-based Office format |
| MP3 audio | FF FB 90 00 |
Mimics real audio |
| AVI video | 52 49 46 46 (RIFF) |
Looks like real AVI |
| + 15 more types | ... | Full coverage |
After filling, SecureWipe deletes all garbage files. The next recovery attempt will find thousands of garbage files instead of your real data — every sector of free space is overwritten.
Files are written in mixed sizes to mimic real usage patterns:
- Large (100 MB – 500 MB): fake videos and archives
- Medium (1 MB – 10 MB): fake photos and documents
- Small (32 KB – 512 KB): fake thumbnails and small images
SSDs have special features that make wiping more complex:
Why SSDs are different:
- Wear leveling — the SSD firmware moves data around internally
- Over-provisioning — 7–28% of NAND is reserved and inaccessible by the OS
- TRIM — OS can tell the SSD to "zero out" deleted blocks
SecureWipe fills all OS-accessible free space, which handles most recovery risks. For maximum protection, also do one of these:
# Install hdparm
sudo apt install hdparm
# Find your drive (e.g., /dev/sda or /dev/nvme0)
sudo lsblk
# Check security status
sudo hdparm -I /dev/sda | grep -i security
# Set a temporary password
sudo hdparm --user-master u --security-set-pass p /dev/sda
# Run Secure Erase (takes 1–30 min, WIPES ENTIRE DRIVE)
sudo hdparm --user-master u --security-erase p /dev/sdasudo apt install nvme-cli
sudo nvme sanitize /dev/nvme0 -a 4 # Crypto Erase
# or
sudo nvme sanitize /dev/nvme0 -a 2 # Block Erase- Restart Mac → hold ⌘ + R (Intel) or Power button (Apple Silicon) → Recovery Mode
- Open Disk Utility
- Select your drive → Erase
- Format: APFS or Mac OS Extended (Journaled)
- Click Erase → this performs a secure erase on SSD
- Settings → System → Recovery → Reset this PC
- Choose Remove everything
- Choose Change settings → turn on "Clean the drive" ✅
- Click Reset
Before selling your computer, follow these steps in order:
□ 1. Back up anything you want to keep (photos, documents, etc.)
□ 2. Sign out of all accounts (iCloud, Google, Microsoft, etc.)
□ 3. Deactivate software licenses (Office, Adobe, etc.)
□ 4. Run SecureWipe (this tool) ← YOU ARE HERE
□ 5. (SSD only) Run Secure Erase per Section 4 above
□ 6. Reset OS to factory settings / reinstall clean OS
□ 7. Verify: run DiskDigger or Recuva yourself — confirm only garbage shows up
For the strongest protection:
1. Run SecureWipe (fills free space with garbage)
2. Then factory reset / reinstall OS
→ The reset itself will format the drive
→ Any remaining data gets overwritten during OS installation
This two-step approach is the most thorough software-only method available.
Q: Will this damage my SSD? A: No. SecureWipe writes normal files through the OS — the SSD's wear-leveling handles everything normally. It adds some wear (like any large file copy), but well within safe limits for a one-time operation.
Q: Will this delete my existing files? A: No. SecureWipe only fills free space — your current files are untouched. The garbage folder is created, filled, then deleted.
Q: How many passes do I need? A: 1 pass is sufficient for all modern drives (HDDs and SSDs). NIST SP 800-88 and most security standards confirm a single overwrite is enough. Use 3 passes only if you want extra peace of mind.
Q: What if the tool stops early or crashes?
A: Run it again. Any leftover garbage files in .securewipe_garbage_do_not_open can be safely deleted manually. Your personal files are safe.
Q: Does this work on exFAT / NTFS / ext4 / APFS? A: Yes. SecureWipe works at the file system level — it works on any filesystem the OS can write to.
Q: I only have 5 GB free. Will it still help? A: Yes. SecureWipe fills whatever free space exists. Even 5 GB of garbage is enough to overwrite recently deleted files.
Q: Can I run this on a USB drive I'm selling?
A: Yes. Use --path to point to the USB drive's mount point.
securewipe/
├── securewipe.py # Main cross-platform script
├── README.md # This file
├── requirements.txt # Python dependencies (none required)
├── install_linux.sh # One-click installer for Linux
├── install_mac.sh # One-click installer for macOS
├── install_windows.bat # One-click installer for Windows
└── LICENSE # MIT License
- Python 3.7 or newer (no third-party packages needed — pure stdlib)
- Works offline — no internet connection needed
- No admin/sudo required for basic use
- Admin required only for drive detection features and ATA Secure Erase
MIT License — free for personal and commercial use. See LICENSE file.
Pull requests welcome! Ideas for contribution:
- GUI interface (Tkinter or web-based)
- Progress estimation improvements
- Additional file type signatures
- Packaging as standalone .exe / .app / .deb
SecureWipe is a free space overwriter — it overwrites sectors that the OS reports as free. Due to SSD wear-leveling and over-provisioning, it cannot guarantee 100% erasure of every physical NAND cell. For absolute certainty (e.g., highly sensitive data), follow the ATA Secure Erase / NVMe Sanitize steps in Section 4, or physically destroy the drive.
The authors are not responsible for data loss. Always keep backups of important data before running any disk tool.