Question and answer is powered by AnsPress.io
if you want to delete image file from source, you can try this code.
File::delete('assets/upload_images/' . $media_name);
you can apply this code, if you want to remove the image from folder after delete records from MySQL table or remove old image file when updating new image file.
to delete files under storage “Storege::delete(‘storage/logs/laravel.log’);” not working but you can use “File::delete(‘storage/laravel.log’);” this is working for me.