Skip to main content
The 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

flag
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

Prompts for confirmation:

Non-interactive reset

Skips confirmation prompt. Useful in scripts.

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
Don’t use if you only want to:
  • Reset settings but keep logs → Use reset-settings instead
  • Change one specific setting → Use the relevant set command
  • Clear logs only → Delete log files manually or use log commands

Alternative: Reset settings only

To reset only settings while keeping logs and account:
See reset-settings for details.

Safety considerations

Factory reset is irreversible. Ensure you have:
  • Your account number saved elsewhere
  • Exported any important settings
  • Backed up custom configurations

Before factory reset checklist

  1. Save account number
    Write down or save the account number.
  2. Export settings (optional)
  3. Disconnect from VPN
  4. Perform reset

After factory reset

After reset completes:
  1. The daemon continues running but is logged out
  2. All settings are at default values
  3. You must log in to use the VPN again
  4. 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.json
  • C:\ProgramData\Mullvad VPN\cache\
  • C:\ProgramData\Mullvad VPN\*.log

Exit status

  • 0 - Successfully reset
  • 1 - Reset failed or user cancelled
  • 2 - Daemon not running