Answer the question
In order to leave comments, you need to log in
Why doesn't Storage::delete() delete the file?
Good evening! Faced such a problem. Storage doesn't delete the file, while it deletes the directory normally.
The folder is deleted normally:
$directory = $user_id.'/'.$folder->slug;
$folder->delete();
Storage::deleteDirectory($directory);
$file = File::find($id);
$directory = $user_id.'/'.$file->folder->slug.$file->hash_name;
Storage::delete($directory);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question