mullvad factory-reset command completely resets the Mullvad VPN app to its initial state, removing all settings, cached data, logs, and account information.
Usage
Options
Automatically answer “yes” to confirmation prompt. Useful for scripting.
What gets reset
A factory reset removes:Account data
- Logged in account (you’ll need to log in again)
- Account token
- Device information
- WireGuard keys
Settings
- All VPN settings (relay selection, tunnel options, etc.)
- Custom relay lists
- Split tunneling configuration
- DNS settings
- All preferences
Cached data
- Relay list cache
- Geographic location cache
- API response caches
- Version information
Logs
- All daemon logs
- Problem report data
- Debug logs
What persists
The following are NOT reset:- Installed application files
- GUI application data (desktop only)
- System-level configuration (systemd service, launch daemons, etc.)
Examples
Interactive reset
Non-interactive reset
Scripting example
When to use factory reset
Use factory reset when:- Troubleshooting persistent configuration issues
- Transferring the app to a new user
- Starting with a clean configuration
- Resolving corrupt settings
- Following security incident response procedures
- Reset settings but keep logs → Use
reset-settingsinstead - Change one specific setting → Use the relevant
setcommand - Clear logs only → Delete log files manually or use
logcommands
Alternative: Reset settings only
To reset only settings while keeping logs and account:reset-settings for details.
Safety considerations
Before factory reset checklist
-
Save account number
Write down or save the account number.
-
Export settings (optional)
-
Disconnect from VPN
-
Perform reset
After factory reset
After reset completes:- The daemon continues running but is logged out
- All settings are at default values
- You must log in to use the VPN again
- The app is in the same state as a fresh installation
Post-reset steps
Platform-specific behavior
Linux
Resets:/etc/mullvad-vpn/settings.json/var/cache/mullvad-vpn//var/log/mullvad-vpn/
macOS
Resets:/etc/mullvad-vpn/settings.json/Library/Caches/mullvad-vpn//var/log/mullvad-vpn/
Windows
Resets:C:\ProgramData\Mullvad VPN\settings.jsonC:\ProgramData\Mullvad VPN\cache\C:\ProgramData\Mullvad VPN\*.log
Exit status
0- Successfully reset1- Reset failed or user cancelled2- Daemon not running
Related commands
reset-settings- Reset settings onlyexport-settings- Backup current settingsaccount logout- Log out but keep settings