Expire all leaves the entities that are in the session in the session. That likely increases memory usage and doesn't seem to have an advantage since delete_cascaded() is often called during test setup when we basically want everything reset. .expunge_all() seems like the better choice, I just didn't know about that method when I wrote .delete_cascaded() originally.