Is this possible? I store two sizes suitable to display on the site, but I don't need to keep the user's 4000 pixel original.
I know I could get the path and unlink the file but not sure what implications this would have. I don't plan to allow conversions to be regenerated.
The package doesn't do this for you, but you can manually delete the original file with
unlink($media->getPath());
@snapey have u found an automated way for doing that ?
If using s3 or local
Illuminate\Support\Facades\Storage\Storage::disk($media->disk)->delete($media->getPath());
Most helpful comment
The package doesn't do this for you, but you can manually delete the original file with