---
id: storage-from-remove
title: "from.remove()"
slug: storage-from-remove
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
---

import Tabs from '@theme/Tabs';
import TabsPanel from '@theme/TabsPanel';

Deletes files within the same bucket


<Tabs
  defaultActiveId="dart"
  groupId="reference/dart"
  values={[{ label: 'Dart', value: 'dart' }]}>

<TabsPanel id="dart" label="dart">

```dart
final res = await supabase
  .storage
  .from('avatars')
  .remove(['avatar1.png']);
```


</TabsPanel>

</Tabs>





## Notes

- Policy permissions required:
  - `buckets` permissions: none 
  - `objects` permissions: `delete` and `select`










## Examples

### Delete file



<Tabs
  defaultActiveId="dart"
  groupId="reference/dart"
  values={[{ label: 'Dart', value: 'dart' }]}>

<TabsPanel id="dart" label="dart">

```dart
final res = await supabase
  .storage
  .from('avatars')
  .remove(['avatar1.png']);
```


</TabsPanel>

</Tabs>