public override void ExecuteCmdlet() { ConfirmAction( Force.IsPresent, string.Format(Resources.RemoveServiceWarning), Resources.RemoveServiceWhatIfMessage, string.Empty, () => { CloudServiceClient = CloudServiceClient ?? new CloudServiceClient( Profile, Profile.Context.Subscription, SessionState.Path.CurrentLocation.Path, WriteDebug, WriteVerbose, WriteWarning); CloudServiceClient.RemoveCloudService(ServiceName, DeleteAll.IsPresent); if (PassThru) { WriteObject(true); } }); }