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.

Swift: Move an existing file

Examples

Move file

try await supabase
  .storage
  .from("avatars")
  .move(from: "public/avatar1.png", to: "private/avatar2.png")

Move file to another bucket

try await supabase
  .storage
  .from("avatars")
  .move(from: "public/avatar1.png", to: "avatar1.png", toBucket: "archive")