JavaScript: remove

Deletes files within the same bucket

Returns an array of FileObject entries for the deleted files. Note that deprecated fields like bucket_id may or may not be present in the response - do not rely on them.

Parameters

Examples

Delete file

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