I am usinf flask,sqlalchemy and sqlite3 for my web application. When I try to the delete operation in my table through UI I am getting an error
delete_user = Usertimeslots.query.filter(Usertimelots.user_id==user_id).all()
print("i am delete",delete_user,file=sys.stderr)
db.session.delete(delete_user)
db.session.commit()
I am trying to delete the row where user id is same in usertimeslots tableuser id
How do I delete the row of the table through flask sqlalchemy