This question already has an answer here:
There has been a lot of talk recently about The Last Jedi being hated, so much so that there are individuals that want to strike it from Star Wars canon and remake it.
Regardless of what you think of this movie (or the proposition to remake it), I'm wondering if there has ever been a movie in a series that has been completely scrapped from the series canon after being released. It seems likely that it hasn't happened in a major series, as that seems like it would be widely known. I'm wondering if a production studio officially has removed a movie from series canon after release, possibly due to fan reaction, later discovery that there were significant errors in production, or simply change of mind regarding the writing.