function removeDirtyChanges() {
			const aDirtyChanges = FlexObjectState.getDirtyFlexObjects(sReference);
			FlexObjectManager.deleteFlexObjects({
				reference: sReference,
				flexObjects: aDirtyChanges
			});
			return aDirtyChanges.length > 0;
		}
Discards the current draft within a given layer; This sends a call to the connector in case a draft exists and will
update the FlexState accordingly in case the <code>updateState</code> flag is set; This API does not revert the changes
and the consumer must take care of making a reload of the application itself.

@param {object} mPropertyBag - Property bag
@param {sap.ui.core.Control} mPropertyBag.control - Control for which the request is done
@param {string} mPropertyBag.layer - Layer for which the versions should be retrieved
@param {boolean} [mPropertyBag.discardDraftAndKeepActiveVersion] - discard draft and keep active version
@returns {Promise<boolean>} Promise resolving with a flag if a discarding took place;
rejects if an error occurs or the layer does not support draft handling