User.query.filter_by(id=123).delete()
Here is what the above code is Doing:
1. We’re querying the User table for a user with an id of 123.
2. We’re deleting that user from the database.
User.query.filter_by(id=123).delete()
Here is what the above code is Doing:
1. We’re querying the User table for a user with an id of 123.
2. We’re deleting that user from the database.