Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

delete file from s3 bucket in laravel 8

$imageName = $studentPortfolios[$i]->portfolio_link; // this returns the file name stored in the DB
 Storage::disk('s3')->delete('s3_folder_path/'. $imageName);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #file #bucket #laravel
ADD COMMENT
Topic
Name
8+6 =