JavaScript: Delete files in a bucket (original) (raw)

Deletes files within the same bucket

Parameters

(Required)
An array of files to delete, including the path and file name. For example [`'folder/image.png'`].

Examples

Delete file

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