<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete_organization(session, organization):
 """Remove an organization from the session. Function that removes from the session the organization given in `organization`. Data related such as domains or enrollments are also removed. :param session: database session :param organization: organization to remove """

    last_modified = datetime.datetime.utcnow()

    for enrollment in organization.enrollments:
        enrollment.uidentity.last_modified = last_modified

    session.delete(organization)
    session.flush()