Today, I looked into how to recycle content items from the Module Builder instead of delete them.
It would have been nice to see this in the generated API documentation for my content types, but I found this other documentation which got me part of the way.
The technique is almost the same as the news version above:
So instead of just getting the data item and moving it to the recycle bin, you need to get the data item, get its master and then move the master.
Since the documentation is still a bit sparse, I thought I'd post this.
DynamicContent resourceItem = dynamicModuleManager.GetDataItem(resourceType, resourceID);
var master = dynamicModuleManager.Lifecycle.Edit(resourceItem) as DynamicContent;
if (master != null)