Table of Contents

Introduction Installation Projects Tables Inserts Searches Updates Deletes CLI Production Installation Partial Autoscaling Good Practices Conclusion

Deletes - Flaarum Tutorials Python     Golang

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


import pyflaarum

cl = pyflaarum.flaacl("127.0.0.1", "not-yet-ready", "first_proj")

try:
  cl.ping()
except:
  print("error connecting")


stmt = '''
table: user_roles
where:
  userid = 32
'''

try:
  cl.delete_rows(stmt)
except pyflaarum.flaa_error as fe:
  print("Server error", fe.code, fe.message)
except Exception as e:
  print("python error")
  print(e.message)
< Previous Next >