I was playing showdown with a person, and while we were playing, I dynamaxed my Boldore, my opponents Kyogre used Whirlpool, but when I used Max Rockfall, the Whirlpool effect went away. Was this a glitch, or does Sandstorm remove Whirlpool, Fire Spin, etc? Here is the replay: https://replay.pokemonshowdown.com/gen8challengecup-1367014469
It's not a bug or glitch.
If the user switches out, the target will be freed
Since Kyogre fainted, Boldore was freed from whirlpool.
Source: https://m.bulbapedia.bulbagarden.net/wiki/Whirlpool_(move)