Invalidates the CDN cache for a single 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 object intact. Otherwise the object's cache is purged.buckets permissions: noneobjects permissions: selectThe path and name of the object to purge from the CDN cache. For example folder/image.png.
When true, only the transformed (resized/formatted) variants are purged, leaving the original cached object intact. Defaults to false.
final String res = await supabase
.storage
.from('avatars')
.purgeCache('avatar1.png');
final String res = await supabase
.storage
.from('avatars')
.purgeCache('avatar1.png', transformations: true);