From a3ee7d10a8c7b187aacc2867dffb98392aa05785 Mon Sep 17 00:00:00 2001 From: Richard Dern Date: Fri, 3 May 2024 16:16:01 +0200 Subject: [PATCH] Delete some residual files --- app/Console/Commands/Bundle/Upgrade.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/Console/Commands/Bundle/Upgrade.php b/app/Console/Commands/Bundle/Upgrade.php index a58bc8a..be42953 100644 --- a/app/Console/Commands/Bundle/Upgrade.php +++ b/app/Console/Commands/Bundle/Upgrade.php @@ -80,6 +80,17 @@ public function handle() $bundle->save(); + $toDelete = [ + 'attachments.json', + 'index.json', + 'metadata.json', + 'links.json', + ]; + + foreach ($toDelete as $file) { + $bundle->getDisk()->delete($bundle->getPath() . $file); + } + $this->info('OK'); } }