private void ExecuteDelete()
        {
            JobParametersBase parameter = new JobParametersBase()
            {
                ResourceGroupName = ResourceGroupName,
                JobName           = Name
            };

            try
            {
                HttpStatusCode statusCode = StreamAnalyticsClient.RemovePSJob(parameter);
                if (statusCode == HttpStatusCode.OK)
                {
                    WriteObject(true);
                }
                else if (statusCode == HttpStatusCode.NoContent)
                {
                    WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.JobNotFound, Name, ResourceGroupName));
                }
                else
                {
                    WriteObject(false);
                }
            }
            catch
            {
                WriteObject(false);
            }
        }
        public override void ExecuteCmdlet()
        {
            if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
            {
                throw new PSArgumentNullException("ResourceGroupName");
            }

            JobParametersBase parameter = new JobParametersBase()
            {
                ResourceGroupName = ResourceGroupName,
                JobName           = Name
            };

            // TODO: change to async call
            HttpStatusCode statusCode = StreamAnalyticsClient.RemovePSJob(parameter);

            if (statusCode == HttpStatusCode.NoContent)
            {
                WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.JobNotFound, Name, ResourceGroupName));
            }
            else
            {
                WriteObject(true);
            }
        }
        private void ExecuteDelete()
        {
            JobParametersBase parameter = new JobParametersBase()
            {
                ResourceGroupName = ResourceGroupName,
                JobName           = Name
            };

            try
            {
                StreamAnalyticsClient.RemovePSJob(parameter);
                WriteObject(true);
            }
            catch
            {
                WriteObject(false);
            }
        }