diff --git a/core-bundle/src/Resources/contao/classes/Versions.php b/core-bundle/src/Resources/contao/classes/Versions.php
index <HASH>..<HASH> 100644
--- a/core-bundle/src/Resources/contao/classes/Versions.php
+++ b/core-bundle/src/Resources/contao/classes/Versions.php
@@ -630,7 +630,7 @@ class Versions extends \Controller
 		// Add the "even" and "odd" classes
 		foreach ($arrVersions as $k=>$v)
 		{
-			$arrVersions[$k]['class'] = (++$intCount%2 == 0) ? 'even' : 'odd';
+			$arrVersions[$k]['class'] = (++$intCount % 2 == 0) ? 'even' : 'odd';
 
 			try
 			{
@@ -646,6 +646,13 @@ class Versions extends \Controller
 				--$intCount;
 				unset($arrVersions[$k]);
 			}
+
+			// Skip deleted files (see #8480)
+			if ($v['fromTable'] == 'tl_files' && $arrVersions[$k]['deleted'])
+			{
+				--$intCount;
+				unset($arrVersions[$k]);
+			}
 		}
 
 		$objTemplate->versions = $arrVersions;
[Core] Do not show version entries of deleted files (see #<I>).