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.
delete() should always be combined with filters to target the item(s) you wish to delete.delete() with filters and you have RLS enabled, only rows visible through SELECT policies are deleted. Note that by default no rows are visible, so you need at least one SELECT/ALL policy that makes the rows visible.delete() returns no rows by default. Add select() after the filters to get the deleted rows back.try await supabase
.from("instruments")
.delete()
.eq("id", value: 1)
.execute()
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