Deletes - Flaarum Tutorials Golang Python
Deleting row(s) in Flaarum takes a search statement as detailed in the searches tutorial. One can delete more than one row at a time.
Sample Code
package main
import (
"github.com/saenuma/flaarum"
)
func main() {
cl := flaarum.NewClient("127.0.0.1", "not-yet-ready", "first_proj")
err := cl.DeleteRows(`
table: user_roles
where:
userid = 32
and roleid = 14
`)
if err != nil {
panic(err)
}
}