Invalidates the CDN cache for every object in a bucket.
secret key and the purgeCache feature enabled for your project on the storage server.transformations is true, only the resized/formatted variants are purged, leaving the original cached objects intact. Otherwise the bucket's object cache is purged.buckets permissions: selectobjects permissions: noneThe unique identifier of the bucket whose CDN cache should be purged.
When true, only the transformed (resized/formatted) variants are purged, leaving the original cached objects intact. Defaults to false.
final String res = await supabase
.storage
.purgeBucketCache('avatars');