I was testing the delete function of SQLAlchemy and noticed that if I use session.delete(obj) to remove an object, it will be listed in session.deleted
session.delete(obj)
session.deleted