I want to update the DeveloperName field via Apex in a Custom MetadataType. I would like to replace "VALUE1" with "VALUE2". Instead, however, it just inserts another line. Is it possible to update DeveloperName via Apex at this time (since Delete is not supported as of yet)?
Metadata.CustomMetadata customMetadata = new Metadata.CustomMetadata();
customMetadata.fullName = 'MySetting__mdt.VALUE2';
customMetadata.label = 'MyLabel';
Metadata.DeployContainer mdContainer = new Metadata.DeployContainer();
mdContainer.addMetadata(customMetadata);
Id jobId = Metadata.Operations.enqueueDeployment(mdContainer, null);