Answer the question
In order to leave comments, you need to log in
Does the delete() method delete files in adjacent directories?
Why are the files in the directories next to product_1 lying on the same level, product_2, product_3, etc., being deleted?
$files=Storage::disk('products')->files('tmp/product_1');
if(count($files)>0) Storage::disk('products')->delete($files);
Answer the question
In order to leave comments, you need to log in
if(count($files)>0) Storage::disk('products/tmp/product_1')->delete($files)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question