/// <summary>
        /// Delete Avoidance Zone
        /// </summary>
        /// <param name="territoryId"> Avoidance Zone Id </param>
        public void DeleteAvoidanceZone(string territoryId)
        {
            // Create the manager with the api key
              Route4MeManager route4Me = new Route4MeManager(c_ApiKey);

              AvoidanceZoneQuery avoidanceZoneQuery = new AvoidanceZoneQuery()
              {
            TerritoryId = territoryId
              };

              // Run the query
              string errorString;
              route4Me.DeleteAvoidanceZone(avoidanceZoneQuery, out errorString);

              Console.WriteLine("");

              if (errorString == "")
              {
            Console.WriteLine("DeleteAvoidanceZone executed successfully");

            Console.WriteLine("Territory ID: {0}", territoryId);
              }
              else
              {
            Console.WriteLine("DeleteAvoidanceZone error: {0}", errorString);
              }
        }
        /// <summary>
        /// Delete Avoidance Zone
        /// </summary>
        /// <param name="territoryId"> Avoidance Zone Id </param>
        public void DeleteAvoidanceZone(string territoryId)
        {
            // Create the manager with the api key
            Route4MeManager route4Me = new Route4MeManager(c_ApiKey);

            AvoidanceZoneQuery avoidanceZoneQuery = new AvoidanceZoneQuery()
            {
                TerritoryId = territoryId
            };

            // Run the query
            string errorString;

            route4Me.DeleteAvoidanceZone(avoidanceZoneQuery, out errorString);

            Console.WriteLine("");

            if (errorString == "")
            {
                Console.WriteLine("DeleteAvoidanceZone executed successfully");

                Console.WriteLine("Territory ID: {0}", territoryId);
            }
            else
            {
                Console.WriteLine("DeleteAvoidanceZone error: {0}", errorString);
            }
        }
        /// <summary>
        /// Delete Avoidance Zone
        /// </summary>
        /// <param name="territoryId"> Avoidance Zone Id </param>
        public void DeleteAvoidanceZone(string territoryId = null)
        {
            // Create the manager with the api key
            var route4Me = new Route4MeManager(ActualApiKey);

            bool isInnerExample = territoryId == null ? true : false;

            if (isInnerExample)
            {
                CreateAvoidanceZone();
                territoryId = avoidanceZone.TerritoryId;
            }

            var avoidanceZoneQuery = new AvoidanceZoneQuery()
            {
                TerritoryId = territoryId
            };

            // Run the query
            route4Me.DeleteAvoidanceZone(avoidanceZoneQuery, out string errorString);

            PrintExampleAvoidanceZone(territoryId, errorString);
        }