Home

Delete files in a bucket

  • Policy permissions required:
    • buckets permissions: none
    • objects permissions: delete and select

const { data, error } = await supabase
  .storage
  .from('avatars')
  .remove(['folder/avatar1.png'])