For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.
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.
An array of files to delete. Each entry is either a path (deletes whichever version is currently at that path, e.g. `'folder/image.png'`), or `{ path, versionId }` to delete an exact version current or archived (e.g. `{ path: 'folder/image.png', versionId: '...' }`).
const { data, error } = await supabase
.storage
.from('avatars')
.remove(['folder/avatar1.png'])
const { data, error } = await supabase
.storage
.from('avatars')
.remove([{ path: 'folder/avatar1.png', versionId: 'noncurrent-version-id' }])