def METHOD_NAME(session, submissions):
    ans = input("This will delete %d submissions. Are you sure? [y/N] "
                % len(submissions)).strip().lower()
    if ans in ["y", "yes"]:
        for submission in submissions:
            session.delete(submission)
        session.commit()
        print("Deleted.")
    else:
        print("Will not delete.")