diff --git a/src/Appwrite/Platform/Modules/Storage/Http/Buckets/Files/Delete.php b/src/Appwrite/Platform/Modules/Storage/Http/Buckets/Files/Delete.php index 1068dc4d9d..9bbc400168 100644 --- a/src/Appwrite/Platform/Modules/Storage/Http/Buckets/Files/Delete.php +++ b/src/Appwrite/Platform/Modules/Storage/Http/Buckets/Files/Delete.php @@ -18,7 +18,6 @@ use Utopia\Database\Validator\Authorization\Input; use Utopia\Database\Validator\UID; use Utopia\Platform\Action; use Utopia\Platform\Scope\HTTP; -use Utopia\Span\Span; use Utopia\Storage\Device; class Delete extends Action @@ -67,7 +66,6 @@ class Delete extends Action ->inject('deviceForFiles') ->inject('queueForDeletes') ->inject('authorization') - ->inject('span') ->callback($this->action(...)); } @@ -80,7 +78,6 @@ class Delete extends Action Device $deviceForFiles, DeleteEvent $queueForDeletes, Authorization $authorization, - Span $span, ) { $bucket = $authorization->skip(fn () => $dbForProject->getDocument('buckets', $bucketId)); @@ -120,7 +117,6 @@ class Delete extends Action // If the partial upload chunks are already gone from the device // (e.g. the upload never wrote anything to disk), treat it as deleted // so the pending file document can still be removed from the database. - $span->add('abortException', $e->getMessage()); $deviceDeleted = true; } } else {