

This can be modified for any other logs by altering the logdirpath and log file naming pattern. REM "C:\Program Files\SysinternalsSuite\sdelete.exe" -p 7 -r "%%i" įor /r %logdirpath% %%i in ( "app-*.nwl" ) do (Įcho I just copypasted this instead of modifying the script. Set "todayslog=%logdirpath%app-%year%-%month%-%day%.nwl"Įcho Removing all Nord VPN log files except %todayslog%. :: Deleting the active log file might cause problems. Set logdirpath=%LocalAppData%\NordVPN\logs\ :: You can find the correct positions from 'echo %DATE%'

:: Change the offsets (~10, ~4, ~7) depending on your regional settings! Depending on your regional settings you may need to correct the offsets for extracting the year, month and day from %DATE%. You can see your recent connections, option to add new locations. Main screen shows your current location and options to connect to a VPN server. Its easy to navigate and find what youre looking for. This deleteNordVPNlogs.cmd script will loop through the Nord VPN log files and remove every log file except for today's log which may still be in use and possibly cause Nord VPN to crash. NordVPN download for Windows is a good choice for users who want a reliable and secure VPN service. Keep in mind that SDelete might not work on SSD drives.

If the drive is not encrypted, you'd need to overwrite the files: I recommend Sysinternals SDelete as it's a command line tool you can use as a replacement in the same script. If the drive is encrypted, using the native del /q would do. No need for an application: a simple script can handle this.
