New user "deleted" is in the database 
An unknown user "deleted" started to appear after #553. This could also be related to the scanning no longer working.
diff --git a/api/models/user.py b/api/models/user.py
index 5da823f..e2ce91e 100644
--- a/api/models/user.py
+++ b/api/models/user.py
@@ -50,4 +50,8 @@ def get_admin_user():
 
 
 def get_deleted_user():
-    return User.objects.get_or_create(username="deleted")[0]
+    deleted_user: User = User.objects.get_or_create(username="deleted")[0]
+    if deleted_user.is_active is not False:
+        deleted_user.is_active = False
+        deleted_user.save()
+    return deleted_user
diff --git a/api/views/user.py b/api/views/user.py
index 4331b6e..6b855a4 100644
--- a/api/views/user.py
+++ b/api/views/user.py
@@ -61,27 +61,31 @@ class UserViewSet(viewsets.ModelViewSet):
     permission_classes = (IsUserOrReadOnly,)
 
     def get_queryset(self):
-        queryset = User.objects.only(
-            "id",
-            "username",
-            "email",
-            "scan_directory",
-            "transcode_videos",
-            "confidence",
-            "semantic_search_topk",
-            "first_name",
-            "last_name",
-            "date_joined",
-            "avatar",
-            "nextcloud_server_address",
-            "nextcloud_username",
-            "nextcloud_scan_directory",
-            "favorite_min_rating",
-            "image_scale",
-            "save_metadata_to_disk",
-            "datetime_rules",
-            "default_timezone",
-        ).order_by("-last_login")
+        queryset = (
+            User.objects.exclude(is_active=False)
+            .only(
+                "id",
+                "username",
+                "email",
+                "scan_directory",
+                "transcode_videos",
+                "confidence",
+                "semantic_search_topk",
+                "first_name",
+                "last_name",
+                "date_joined",
+                "avatar",
+                "nextcloud_server_address",
+                "nextcloud_username",
+                "nextcloud_scan_directory",
+                "favorite_min_rating",
+                "image_scale",
+                "save_metadata_to_disk",
+                "datetime_rules",
+                "default_timezone",
+            )
+            .order_by("-last_login")
+        )
         return queryset
 
     def get_permissions(self):
['api/views/user.py', 'api/models/user.py']