Burn Notice will remove all files from your home directory, leaving folder structures intact.
I take no responsibility for what you destroy. Run this script at your own risk.
This list is not exhaustive!
~/Applications
~/Desktop
~/Documents
~/Downloads
~/Movies
~/Music
~/Pictures
.ssh
.aws
.zshrc
and.bashrc
.bash_history
.bash_sessions
- etc
- Anything stored outside your personal home folder (eg: root
/Applications
folder) - Signing out or deleting things like iCloud, DropBox, Google Drive, or other cloud storage providers (it actively tries to ignore these)
- Browsing data
- Trash - see why
~/Library
- requires sudo access and is necessary for the user account to function
Burn notice runs as the user and does not require sudo access ensuring you can only burn what belongs to you.
# Setup the tap
brew tap justintime50/formulas
# Install the tool
brew install burn-notice
Once invoked, Burn Notice will ask for confirmation and provide a warning before proceeding.
burn-notice
- Burn Notice is not intended to be a 100% secure solution to destroying data. There are better methods to use instead such as formatting your hard drive. Burn Notice is the quick and dirty solution when you may not have time to format a drive.
- Burn Notice is not intended to render your machine unusable or break the boot sequence. It will only remove the contents of your main home folder files and various hidden files that may contain sensitive data.
If for whatever reason you really truly do want to destroy the filestructure of your system (don't), run the following:
rm -rf /*
NOTE: Some OS's won't allow you to run this, others may warn you before doing so, some may just blow away everything without awaiting your input. Use at your own risk.