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.

Kotlin: Delete data

Perform a DELETE on the table or view.

Parameters

Examples

Delete records

supabase.from("cities").delete {
    filter {
        City::id eq 666
        // or
        eq("id", 666)
    }
}

Fetch deleted records

val deletedCity = supabase.from("cities").delete {
    select()
    filter {
        City::id eq 666
        // or
        eq("id", 666)
    }
}.decodeSingle<City>()