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: Delete data

Examples

Delete records

try await supabase
  .from("instruments")
  .delete()
  .eq("id", value: 1)
  .execute()

Delete a record and return it

struct Instrument: Decodable {
  let id: Int
  let name: String
}

let deleted: [Instrument] = try await supabase
  .from("instruments")
  .delete()
  .eq("id", value: 1)
  .select()
  .execute()
  .value