remove() doesn't seem to remove the file from a bucket
I am running a script to delete files:
however, the file remains after. Things I have checked:
- Policy: Only users who are authenticated & exist in a specific table of users is allowed:
Policies under storage.buckets
DELETE
Enable delete for ADMIN users
- Checked My bucket settings:
- Errors: none exist.
Any other ideas?
1 Reply
You need to meet both select and delete RLS. You need to meet select RLS on your admin table. Try simplifying the RLS if that does work.
There will be no error.