diff --git a/lib/pages_desktop_specific/password/delete_password_warning_view.dart b/lib/pages_desktop_specific/password/delete_password_warning_view.dart
index 167279d92..a24a96a0d 100644
--- a/lib/pages_desktop_specific/password/delete_password_warning_view.dart
+++ b/lib/pages_desktop_specific/password/delete_password_warning_view.dart
@@ -45,7 +45,9 @@ class _ForgotPasswordDesktopViewState
       if (Platform.isWindows || Platform.isLinux) {
         await appRoot.delete(recursive: true);
       } else {
-        appRoot.listSync().forEach((element) => element.deleteSync());
+        appRoot
+            .listSync()
+            .forEach((element) => element.deleteSync(recursive: true));
       }
 
       await DB.instance.init();