Deletes generated files and adapts the gitignore file.