A secure file deletion tool implementing 7-pass DoD standard, Gutmann method, and metadata destruction for permanent file eradication.
- 7-pass DoD 5220.22-M compliant overwriting
- Optional 35-pass secure deletion for maximum security
- Metadata and filesystem artifact removal
- Works on Windows, Linux, and macOS
- Detects SSD storage and provides appropriate warnings
- Optional overwrite verification for each pass
- Python 3.6 or higher
- pip (Python package manager)
For enhanced functionality, install optional dependencies:
pip install colorama tqdmgit clone https://github.com/ricalnet/file-eraser-x1.git && cd file-eraser-x1python file-eraser-x1.py sensitive-file.txtpython file-eraser-x1.py /path/to/sensitive/folder# 35-pass Gutmann method
python file-eraser-x1.py target-file --gutmann
# DoD 3-pass standard
python file-eraser-x1.py target-file --dod
# Custom passes with verification disabled
python file-eraser-x1.py target-file --passes 10 --no-verify --no-metadata
# Verbose mode with auto-confirmation
python file-eraser-x1.py target-file -v -y| Option | Description | Default |
|---|---|---|
path |
File or directory path to erase | (required) |
--passes |
Number of overwrite passes | 7 |
--no-verify |
Disable overwrite verification | Enabled |
--no-metadata |
Disable metadata destruction | Enabled |
-v, --verbose |
Verbose output mode | Disabled |
-y, --yes |
Execute without confirmation | Disabled |
--gutmann |
Use 35-pass Gutmann method | Disabled |
--dod |
Use DoD 3-pass standard | Disabled |
The tool uses multiple patterns for secure overwriting:
- DoD 5220.22-M Standard: 3-pass method (ones, zeros, random)
- Extended 7-pass: Additional patterned overwrites
- Gutmann 35-pass: Pattern-based method
- File timestamp modification
- Permission changes
- Multiple rename operations
- Filesystem artifact removal
- The tool detects SSD storage and warns about potential limitations of overwrite methods on flash media
- Each pass can be verified to ensure successful overwriting
- Uses OS-specific secure deletion methods when available
python file-eraser-x1.py financial-report.pdf --passes 7 -vpython file-eraser-x1.py ~/deleted-items -y --gutmannpython file-eraser-x1.py temp-file.txt --dod --no-metadata -y- Overwrite methods may be less effective on SSDs due to wear leveling
- Some filesystems may retain data in journals
- Physical recovery may still be possible in some scenarios
- Not effective for files synced to cloud services
- For maximum security on SSDs, use full-disk encryption
- Combine with physical destruction for highly sensitive media
- Regularly use the tool for routine secure deletion needs
- Verify important deletions with the verification option
This tool is provided for educational and legitimate security purposes only. The authors are not responsible for misuse of this software. Always ensure you have proper authorization before deleting any files.
MIT License - see LICENSE file for details.
Note: Always test the tool on non-critical files before using it for important operations.