diff --git a/authentik/core/templatetags/authentik_core.py b/authentik/core/templatetags/authentik_core.py
index c6f0c58437..7f8a80a5fa 100644
--- a/authentik/core/templatetags/authentik_core.py
+++ b/authentik/core/templatetags/authentik_core.py
@@ -17,11 +17,5 @@ def versioned_script(path: str) -> str:
f''
),
- # Legacy method of loading scripts used as a fallback, without the version in the filename
- # TODO: Remove after 2024.6 or later
- (
- f''
- ),
]
return mark_safe("".join(returned_lines)) # nosec