To remove an app from the dock:
Hover over the app's icon in the dock
Click on the "cog" button at the top-right corner of the sub-dock
Un-toggle each account or click on the "remove application" button.
We're going to improve this specific design element in the next release as quite a few users seem dissatisfied with it.