---
updatedAt: 2025-11-05T21:12:41.000Z
agentTools:
  projectIndex: https://developers.short.io/llms.txt
---

# Delete link country

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Short.io API",
    "version": "1.0.0"
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "paths": {
    "/link_country/{linkId}/{country}": {
      "delete": {
        "summary": "Delete link country",
        "tags": [
          "Link Targeting"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "domainId",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "linkId",
            "required": true
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "AD"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AF"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AG"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AI"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AL"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AO"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AQ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AS"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AT"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AU"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AW"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AX"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "AZ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BA"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BB"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BD"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BF"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BG"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BH"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BI"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BJ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BL"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BN"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BO"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BQ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BS"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BT"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BV"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BW"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BY"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "BZ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CA"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CC"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CD"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CF"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CG"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CH"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CI"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CK"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CL"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CN"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CO"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CU"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CV"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CW"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CX"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CY"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "CZ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "DE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "DJ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "DK"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "DM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "DO"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "DZ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "EC"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "EE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "EG"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "EH"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "ER"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "ES"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "ET"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "FI"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "FJ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "FK"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "FM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "FO"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "FR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GA"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GB"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GD"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GF"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GG"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GH"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GI"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GL"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GN"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GP"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GQ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GS"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GT"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GU"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GW"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "GY"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "HK"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "HM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "HN"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "HR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "HT"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "HU"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "ID"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "IE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "IL"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "IM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "IN"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "IO"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "IQ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "IR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "IS"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "IT"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "JE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "JM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "JO"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "JP"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "KE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "KG"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "KH"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "KI"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "KM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "KN"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "KP"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "KR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "KW"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "KY"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "KZ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "LA"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "LB"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "LC"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "LI"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "LK"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "LR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "LS"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "LT"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "LU"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "LV"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "LY"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MA"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MC"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MD"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "ME"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MF"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MG"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MH"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MK"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "ML"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MN"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MO"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MP"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MQ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MS"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MT"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MU"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MV"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MW"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MX"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MY"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "MZ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "NA"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "NC"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "NE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "NF"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "NG"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "NI"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "NL"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "NO"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "NP"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "NR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "NU"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "NZ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "OM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PA"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PF"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PG"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PH"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PK"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PL"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PN"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PS"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PT"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PW"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "PY"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "QA"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "RE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "RO"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "RS"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "RU"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "RW"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SA"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SB"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SC"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SD"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SG"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SH"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SI"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SJ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SK"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SL"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SN"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SO"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SS"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "ST"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SV"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SX"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SY"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "SZ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TC"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TD"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TF"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TG"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TH"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TJ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TK"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TL"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TN"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TO"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TR"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TT"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TV"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TW"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "TZ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "UA"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "UG"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "UM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "US"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "UY"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "UZ"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "VA"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "VC"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "VE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "VG"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "VI"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "VN"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "VU"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "WF"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "WS"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "YE"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "YT"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "ZA"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "ZM"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "ZW"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "XK"
                  ]
                }
              ]
            },
            "in": "path",
            "name": "country",
            "required": true,
            "description": "Country code"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.short.io",
      "description": "API server"
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```