diff --git a/py/routes/api_routes.py b/py/routes/api_routes.py index ab4feace..10a52a78 100644 --- a/py/routes/api_routes.py +++ b/py/routes/api_routes.py @@ -269,6 +269,9 @@ class ApiRoutes: cache = await self.scanner.get_cached_data() cache.raw_data = [item for item in cache.raw_data if item['file_path'] != main_path] await cache.resort() + + # update hash index + self.scanner._hash_index.remove_by_path(main_path) # Delete optional files for pattern in patterns[1:]: