# Deleting and re-inserting a record in SQLAlchemy in the same transaction
3 min read
Recently, I was puzzled with an issue while working on one of my projects. In an endpoint I was building, I had to delete an existing record of a table and create a new one in a way that both the…