---
updatedAt: 2026-08-01T11:27:25.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Delete Site/Zone Targeting

This removes site/zone targeting from a flight.

## Why Delete Site/Zone Targeting?

Occasionally, you may wish to remove site/zone targeting from a flight when updating the flight. The Delete Site/Zone Targeting API endpoint enables you to remove all site and zone targeting for a flight.

## API Syntax

When using the Delete Site/Zone Targeting API endpoint, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

`GET https://api.kevel.co/v1/flight/{FlightID}/sitezonetargeting/{SiteZoneTargetingID}/delete`

Where:

* `GET` - the type of API request being made.
* `https://api.kevel.co` - the URL for the request.
* `v1` - the API version.
* `flight` - the API endpoint being called.
* `FlightID` - the ID associated with the flight.
* `sitezonetargeting` - the site/zone targeting object.
* `SiteZoneTargetingID` - the ID associated with the site/zone targeting object.
* `delete` - the action to remove site/zone targeting from a flight.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "management-api-2",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Adzerk-ApiKey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/flight/{FlightID}/sitezonetargeting/{SiteZoneTargetingID}/delete": {
      "get": {
        "summary": "Delete Site/Zone Targeting",
        "description": "This removes site/zone targeting from a flight.",
        "operationId": "delete-sitezone-targeting",
        "parameters": [
          {
            "name": "FlightID",
            "in": "path",
            "description": "ID of the Flight",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "SiteZoneTargetingID",
            "in": "path",
            "description": "ID of the Site Zone Targeting parameter. You can pull it through the Get Flight endpoint if don't have.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "\"Successfully Deleted\""
                  }
                },
                "schema": {
                  "type": "string",
                  "example": "Successfully Deleted"
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X GET -H 'X-Adzerk-ApiKey:<APIKEY>' \"https://api.kevel.co/v1/flight/12345/sitezonetargeting/98765/delete\""
            },
            {
              "language": "javascript",
              "code": "const Adzerk = require('@adzerk/management-sdk');\nconst apiKey = process.env.ADZERK_API_KEY;\n\nasync function deleteSiteZoneTargeting() {\n  let specifications = await Adzerk.fetchSpecifications();\n  let client = await Adzerk.buildClient({apiKey, specifications});\n\n  let response = await client.run(\"siteZoneTargeting\", \"delete\", {\n    id: 98765,\n    flightId: 12345\n  });\n\n  console.log(response);\n}\n\ndeleteSiteZoneTargeting();"
            },
            {
              "language": "ruby",
              "code": "require \"adzerk\"\n\ndef delete_site_zone_targeting()\n    client = Adzerk::Client.new(ENV[\"ADZERK_API_KEY\"])\n    flight_id = 12345\n    id = 67890\n    pp client.sitezonetargetings.delete(flight_id, id)\nend\ndelete_site_zone_targeting()"
            }
          ],
          "samples-languages": [
            "curl",
            "javascript",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "X-Adzerk-Sdk-Version",
        "value": "Readme.io:ManagementAPI2"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```