diff --git a/lib/private/Preview/PreviewMigrationService.php b/lib/private/Preview/PreviewMigrationService.php index d3db56fc69cb1..4aa7cb9c26930 100644 --- a/lib/private/Preview/PreviewMigrationService.php +++ b/lib/private/Preview/PreviewMigrationService.php @@ -83,6 +83,8 @@ public function migrateFileId(int $fileId, bool $flatPath): array { } if (empty($previewFiles)) { + $this->deleteFolder($internalPath); + return $previews; }