How do you replace a shower rod?

How do you replace a shower rod?

https://www.youtube.com/watch?v=ZA6ZAc8TCUk