async function eraseDirtyChanges(mPropertyBag) {
		var aVariantDirtyChanges = mPropertyBag.model._getDirtyChangesFromVariantChanges(mPropertyBag.changes);
		aVariantDirtyChanges = aVariantDirtyChanges.reverse();

		if (mPropertyBag.revert) {
			await Reverter.revertMultipleChanges(aVariantDirtyChanges, {
				appComponent: mPropertyBag.model.oAppComponent,
				modifier: JsControlTreeModifier,
				reference: mPropertyBag.model.sFlexReference
			});
		}
		FlexObjectManager.deleteFlexObjects({
			reference: mPropertyBag.model.sFlexReference,
			flexObjects: aVariantDirtyChanges
		});
	}
Removes passed control changes which are in DIRTY state from the variant state and flex controller.

@param {object} mPropertyBag - Object with properties
@param {sap.ui.fl.apply._internal.flexObjects.FlexObject[]} mPropertyBag.changes - Array of control changes
@param {string} mPropertyBag.vmReference - Variant management reference
@param {string} mPropertyBag.vReference - Variant reference to remove dirty changes from
@param {sap.ui.fl.variants.VariantModel} mPropertyBag.model - Variant model instance
@param {boolean} [mPropertyBag.revert] - Revert the given changes

@returns {Promise<undefined>} Resolves when changes have been erased