I am trying to delete a folder and all its files in Laravel.
I am creating the folder like this:
$filename = $file->getClientOriginalName();
$path = "images/$id/thumbnail/$filename";
Storage::put($path, File::get($file->getRealPath()));
Then in a queue I am trying to delete the folder and all its files by using:
Storage::deleteDirectory("images/$this->id/thumbnail");
But this doesnt delete the folder, and I dont get any errors either
The folder is located in: Storage/app/images