--- id: storage-from-remove title: 'from.remove()' slug: /storage-from-remove custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml --- import Tabs from '@theme/Tabs' import TabItem from '@theme/TabItem' Deletes files within the same bucket ```js const { data, error } = await supabase.storage .from('avatars') .remove(['folder/avatar1.png']) ``` ## Parameters ## Notes - RLS policy permissions required: - `buckets` table permissions: none - `objects` table permissions: `delete` and `select` - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works ## Examples ### Delete file ```js const { data, error } = await supabase.storage .from('avatars') .remove(['folder/avatar1.png']) ```