Dynamics 365 (Version 1710 (9.1.0.2055))
Ribbon Workbench 2016 3.1.177.1
I added a button to a custom entity form (on a customer's sandbox instance) using Ribbon Workbench but when I published it there was an error saying "dc.cc_offerout.TestSendEmail.Command already exists". I thought I may have used that name already so changed the command name to dc.cc_offerout.TestSendEmailv2.Command. This gave me the same error when I published the solution. I reloaded the solution in RW and it showed duplicate commands:
dc.cc_offerout.TestSendEmail.Command
dc.cc_offerout.TestSendEmail.Command
dc.cc_offerout.TestSendEmail.Commandv2
dc.cc_offerout.TestSendEmail.Commandv2
I've looked at many articles on community.dynamics.com and other places but none of the suggestions worked, so I did an instance copy from the live environment to the sandbox to reset everything. I recreated the button and it appeared to work and the solution was deployed to live. Unfortunately, the command had duplicated once again. I've tried renaming the elements within the ribbon xml, but it still duplicated each one, so this is what we currently have:

I have tried deleting the elements from within RW - no success
I have tried editing customizations.xml to:
<RibbonDiffXml>
</RibbonDiffXml>
I have tried editing it with empty child elements as instructed in this article (I know that's for CRM 2011 but it was worth a try).
<RibbonDiffXml>
<CustomActions />
<Templates>
<RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates>
</Templates>
<CommandDefinitions />
<RuleDefinitions>
<TabDisplayRules />
<DisplayRules />
<EnableRules />
</RuleDefinitions>
<LocLabels />
</RibbonDiffXml>
I'll post the current RibbonDiffXml in the following post.
I can't copy the live instance to sandbox again because it's already got the duplicate actions/commands. This is now causing a problem if we try to import this custom entity to live because the import fails due to duplicate action/command ids. How can I remove RibbonDiff elements?