cschoeni
2 years ago
108
6
Laravel

Delete a Folder with Storage or File Class

Posted 2 years ago by cschoeni

How i can delete a Folder in public oder private storage.

It' didn't work with

File::delete(storage_path('app/public/persons/photos/5'));

But The folder exist. i controlled this with the function

File::exists(storage_path('app/public/persons/photos/5')

Please sign in or create an account to participate in this conversation.