Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
delete a record by id in flask sqlalchemy 1

delete a record by id in flask sqlalchemy

April 25, 2022 by Anurag batra
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.

Categories Python Examples
Post navigation
sort by index 2d array python
create a 2d array in python
© MyEduKit - 2022 . All Rights Reserved.