You can run one query for this.
for all entries
db.session.query(Table_name).delete() db.session.commit()
here db is an object of the Flask SQLAlchemy class. It will delete all entries from it, and if you want to delete specific entries, try filter_by in the query. e.g.
for a specific value
db.session.query(Table_name).filter_by(id==123).delete() db.session.commit()
anand tripathi
source share