onDeleteFromOverviewDialog(sAppVariantId, bCurrentlyAdapting, sCurrentLayer) {
			let bIsS4HanaCloud;
			return new Promise(function(resolve) {
				sap.ui.require(["sap/ui/rta/appVariant/AppVariantManager"], function(AppVariantManager) {
					oAppVariantManager ||= new AppVariantManager({
						rootControl: oRootControlRunningApp,
						commandSerializer: oCommandSerializer,
						layer: sCurrentLayer
					});

					const fnDeleteAppVariant = function() {
						return oAppVariantManager.deleteAppVariant(sAppVariantId)
						.catch(function(oError) {
							if (oError === "cancel") {
								return Promise.reject("cancel");
							}
							let sMessageKey = oError.messageKey;
							sMessageKey ||= "MSG_DELETE_APP_VARIANT_FAILED";
							return AppVariantUtils.catchErrorDialog(oError, sMessageKey, sAppVariantId);
						});
					};

					const fnDeleteSuccessMessage = function() {
						AppVariantUtils.closeOverviewDialog();
						const oSuccessInfo = AppVariantUtils.buildDeleteSuccessMessage(sAppVariantId, bIsS4HanaCloud);
						return oAppVariantManager.showSuccessMessage(oSuccessInfo);
					};

					const fnTriggerS4HanaPolling = function() {
						bIsS4HanaCloud = FlexRuntimeInfoAPI.isAtoEnabled();
						if (bIsS4HanaCloud) {
							let oIAMResponse;
							return fnS4HanaAddBrowserCloseWarning(bCurrentlyAdapting)
							.then(function() {
								return fnTriggerCatalogUnAssignment(sAppVariantId);
							})
							.then(function(oResult) {
								oIAMResponse = { ...oResult };
								return fnReloadOverviewDialog.call(this, !bCurrentlyAdapting, sCurrentLayer);
							}.bind(this))
							.then(function() {
								return fnTriggerPollingTileDeletion(oIAMResponse, sAppVariantId);
							});
						}
						BusyIndicator.show();
						return Promise.resolve();
					};

					const fnTriggerS4HanaRefresh = function() {
						if (bIsS4HanaCloud) {
							fnS4HanaRemoveBrowserCloseWarning();
						}
						BusyIndicator.hide();
						return bCurrentlyAdapting ? resolve() : fnReloadOverviewDialog.call(this, !bIsS4HanaCloud, bIsS4HanaCloud, sCurrentLayer).then(resolve);
					};

					if (bCurrentlyAdapting) {
						AppVariantUtils.closeOverviewDialog();
						AppVariantUtils.navigateToFLPHomepage();
					}

					return fnTriggerS4HanaPolling.call(this)
					.then(fnDeleteAppVariant)
					.then(fnDeleteSuccessMessage)
					.then(fnTriggerS4HanaRefresh.bind(this))
					.catch(function(oError) {
						if (oError === "cancel") {
							return false;
						}
						if (bIsS4HanaCloud) {
							fnS4HanaRemoveBrowserCloseWarning();
						}
						return fnReloadOverviewDialog.call(this, null, bIsS4HanaCloud, sCurrentLayer).then(resolve);
					}.bind(this));
				}.bind(this));
			}.bind(this));
		}
@param {string} sAppVariantId - Application variant ID
@param {boolean} bCurrentlyAdapting - Boolean value which tells if the running application is currently being adapted
@param {string} sCurrentLayer - Current working layer
@returns {Promise} Resolved promise
@description Triggers a delete operation of the app variant.