How to delete files from Supabase bucket?

Dumb question, but I can't figure it out for last 2 hours. And can't find any documentation or even a single post about it.

Every resources talks about how to do it with code, not Rest API

The same request as below, if set to GET, I can access the file with API key, but delete returns 404

I also made sure authenticated & anon had full access policy

Hey @rxunique does supabase have API docs for the delete action? Happy to take a look there and see what the issue is, if we can see what is expected on their end. Thanks :blush:

Thanks for looking into this old post.

I have since found out that supabase doesn't offcially has documentation on REST API for deleting files, only via code.

1 Like