// Delete the directory that contains the account information.
if (!accountDirFull.IsEmpty()){
-
+
+#if defined(__WIN32__)
+
+ accountDirDelFull.Append(GetUserDir());
+ accountDirDelFull.Append(wxT("\\accounts\\"));
+ accountDirDelFull.Append(accountDirFull);
+
+#else
+
accountDirDelFull.Append(wxString::FromUTF8(getenv("HOME")));
accountDirDelFull.Append(wxT("/.xestiacal/accounts/"));
accountDirDelFull.Append(accountDirFull);
+#endif
+
wxRmDir(accountDirDelFull);
}