question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot Delete image from bucket

See original GitHub issue

Hello dears, i have 2 days trying to delete an image from the bucket 1- the bucket is private 2- the bucket name is => images 3- i try multiple things and all fails

here is my code used to delete the image:

deleteImage(bucked: string, imageId: string) { return this.supabaseConfig .getSupabaseClient() .storage.from(bucked) .remove([${imageId}]); }

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
iniancommented, Feb 25, 2022

Are you using the anon key or service key here @ahmedabdelhafez? if you are using the anon key, you may need to allow access by adding the right RLS policies in your dashboard

0reactions
fenoscommented, Dec 15, 2022

Feel free to re-open when providing more details

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot delete image from aws s3 bucket - Stack Overflow
I want to delete one of the images stored in the AWS S3 bucket by express.js, but I am facing an issue. Below...
Read more >
Deleting a bucket - Amazon Simple Storage Service
Make sure the bucket is empty – You can only delete buckets that don't have any objects in them. · s3:DeleteBucket permissions –...
Read more >
Troubleshoot failed request to delete an Amazon S3 bucket
1. Open the Amazon S3 console. · 2. Open the bucket that you want to delete by choosing the bucket's name. · 3....
Read more >
Removed image from node, but not removed from bucket nor ...
The problem is that when I remove the image and save the node, it does not delete it from the bucket. I did...
Read more >
Can't delete file on amazon S3 - Laracasts
Hi to all... I'm unable to delete file con Amazon S3. With this code: Storage::disk('s3')->put($path, $contents); I'm able to copy file on Amazon...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found