public override void ExecuteCmdlet() { if (string.IsNullOrEmpty(ResourceGroupName) && string.IsNullOrEmpty(Name)) { ResourceGroupName = ResourceIdUtility.GetResourceGroupName(Id); Name = ResourceIdUtility.GetResourceName(Id); } ConfirmAction( Force.IsPresent, string.Format(ProjectResources.DeleteResourceGroupDeployment, Name), ProjectResources.DeleteResourceGroupDeploymentMessage, ResourceGroupName, () => ResourceManagerSdkClient.DeleteDeployment(ResourceGroupName, Name)); WriteObject(true); }