Rather than disabling the Web Application you can also disable RUM injection on the Process Group serving the web pages. You can do so by going to Technologies > selecting your Process Group > Edit > Real User Monitoring.
In conjunction with Dynatrace Support you can also disable Real User Monitoring via the Troubleshooting section of Settings > Server-side service monitoring > Deep monitoring.
Though, sometimes cookies remain stored on your browser until they expire or are manually deleted. You might want to clear your browser’s cookie and site data to be sure they’re no longer generated.
Even performing the actions mentioned by you, the cookie became invalid only when we performed the oneagent stop. I imagine that after disabling the RUM in the “apache” process group, for example, the injection should have ended.