AWS Bucket delete object

I’m implementing AWS S3 bucket in my project.
Upload field is multiple (files).Adding and fetching files from bucket work as expected.
However, deleting files from Add/Edit/Delete Page don’t work.I’ve tested below code and it works. Meaning: there’s no issue for remote deletion.

// Global Code
$s3client->deleteObject(array(
  'Bucket' => '<my bucket>',
  'Key'    => '<my key>'
));

Question:

  • Is it normal behavior? Should I write the code myself for files deletion in Add/Edit/Delete Page?

Thank you.

You may double check your settings of Delete file on update/delete.

Oh geezz… you’re right, I forgot to check that.