Fast search and delete row in table

If there’s going to be exactly one with that group name, then use get:

row = app_tables.group_table.get(group_name=table_entry["Group Name"])
if row:
    row.delete()

As much as possible, let the database do the work of finding the right row(s) for you.

4 Likes