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.