diff --git a/lib/Service/FileService.php b/lib/Service/FileService.php
index 9d967d2774..7c20b31c2e 100644
--- a/lib/Service/FileService.php
+++ b/lib/Service/FileService.php
@@ -23,6 +23,7 @@
 use OCP\AppFramework\Services\IAppConfig;
 use OCP\Files\IMimeTypeDetector;
 use OCP\Files\IRootFolder;
+use OCP\Files\NotFoundException;
 use OCP\Http\Client\IClientService;
 use OCP\IDateTimeFormatter;
 use OCP\IL10N;
@@ -604,7 +605,10 @@ public function delete(int $fileId): void {
 			$signedNextcloudFile = $this->folderService->getFileById($file->getSignedNodeId());
 			$signedNextcloudFile->delete();
 		}
-		$nextcloudFile = $this->folderService->getFileById($fileId);
-		$nextcloudFile->delete();
+		try {
+			$nextcloudFile = $this->folderService->getFileById($fileId);
+			$nextcloudFile->delete();
+		} catch (NotFoundException $e) {
+		}
 	}
 }