git-flask-python : Is it safe to remove pycache and flask session folders
Both these folders contain temporary objects that are created in runtime, and there's no point in committing them to git.
I'd remove those folders from your repository and then add them to .gitignore to prevent them from being re-added there by mistake.
I had implemented my project along with daily commits to Github, which is a website implemented using Flask and Python, while daily commits I used to    git add --a, thus it has added all folders like __pycache__ and flask_session. I think it is safe to delete those from my Github, Is it so? If not why?