If you're running Windows, I whipped up a batch file that scans your WTF folder and checks for orphaned SavedVariable files against your installed addons. It also removes all of the redundant backup files that WoW likes to create.
Bat Code:
@echo off
pushd "C:\Program Files (x86)\World of Warcraft\WTF\Account"
del /s *.bak
del /s *.old
for /d %%i in (*) do (
if exist %%i\SavedVariables\ (
echo Account: %%i
for %%j in ("%%i\SavedVariables\*.lua") do (
echo GlobalSV: %%~nj
if not exist ..\..\Interface\AddOns\%%~nj\ (
echo Delete: %%~nj
del "%%j"
)
)
for /d %%j in ("%%i\*") do (
for /d %%k in ("%%j\*") do (
echo Character: %%k
for %%l in ("%%k\SavedVariables\*.lua") do (
echo CharSV: %%~nl
if not exist ..\..\Interface\AddOns\%%~nl\ (
echo Delete: %%~nl
del "%%l"
)
)
)
)
)
)
popd
pause
Just copy/paste this into a text file, make sure the path in line 2 matches where your WoW account folder is located, and change the extension to
.bat or
.cmd, both do the same thing. If you want to leave the redundant backup files alone, remove lines 4 and 5. You can delete the
echo lines if you want. I like my batch files to be verbose so I know it's doing its job.