--- id: storage-from-move title: "from.move()" slug: storage-from-move custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml --- import Tabs from '@theme/Tabs'; import TabsPanel from '@theme/TabsPanel'; Moves an existing file, optionally renaming it at the same time. ```js const { data, error } = await supabase .storage .from('avatars') .move('public/avatar1.png', 'private/avatar2.png') ``` ## Parameters ## Notes - Policy permissions required: - `buckets` permissions: none - `objects` permissions: `update` and `select` ## Examples ### Move file ```js const { data, error } = await supabase .storage .from('avatars') .move('public/avatar1.png', 'private/avatar2.png') ```