I tried using the storage | delete files, but that doesn’t seem to work on a private bucket.
I have policies both on my public and private buckets, and they are the exact same policies (with the exception of the bucket ID obviously), but this supabase function only seems to work on files I delete from a public bucket and not a private one.
I just had a similar issue - I could not delete a file from Supabase storage.
In my case the file was in a folder and the problem was that I used backslash as the separator instead of a regular forward slash.
So don’t use foldername\filename.ext
Use foldername/filename.ext