# Delete Destination List

```http
DELETE /destinationlists/{destinationListId}
```

API: Cisco Secure Access Destination Lists API (version 2.0.4)

Operation ID: deleteDestinationList

Tags: Destination Lists, Secure Access

## Description

Delete a destination list from your organization.

## Servers

```json
[
  {
    "url": "https://api.sse.cisco.com/{basePath}",
    "variables": {
      "basePath": {
        "default": "policies/v2"
      }
    }
  }
]
```

## Authentication

Satisfy any one of the following alternatives. Within each alternative, all listed schemes are required. An empty object allows anonymous access.

```json
[
  {
    "oauthFlow": [
      "policies.destinationLists:write"
    ]
  }
]
```

### Security schemes

```json
{
  "oauthFlow": {
    "type": "oauth2",
    "description": "client credential flow",
    "flows": {
      "clientCredentials": {
        "tokenUrl": "https://api.sse.cisco.com/auth/v2/token",
        "scopes": {
          "policies.destinationLists:write": "Write policies destination lists",
          "policies.destinationLists:read": "Read policies destination lists",
          "policies.destinations:write": "Write policies destinations",
          "policies.destinations:read": "Read policies destinations"
        }
      }
    }
  }
}
```

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| destinationListId | path | yes | integer | The unique ID of the destination list. |

### Parameter definitions

```json
[
  {
    "name": "destinationListId",
    "in": "path",
    "schema": {
      "type": "integer"
    },
    "description": "The unique ID of the destination list.",
    "required": true,
    "example": 245,
    "$$ref": "#/components/parameters/destinationListId"
  }
]
```

## Responses

### 200

OK

```json
{
  "description": "OK",
  "headers": {
    "Content-Type": {
      "schema": {
        "type": "string"
      },
      "description": "The MIME content type of the response body.",
      "example": "application/json",
      "$$ref": "#/components/headers/Content-Type"
    },
    "Date": {
      "schema": {
        "type": "string",
        "pattern": "^[0-90-90-90-9-0-90-9-0-90-9T0-90-9:0-90-9:0-90-9Z]+$"
      },
      "description": "The timestamp of the response.",
      "example": "2023-03-14T18:34:25Z",
      "$$ref": "#/components/headers/Date"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "description": "Delete the destination list. The data field is empty in the response.",
        "required": [
          "status",
          "data"
        ],
        "properties": {
          "status": {
            "type": "object",
            "required": [
              "code",
              "text"
            ],
            "description": "The status information for the response.",
            "properties": {
              "code": {
                "type": "integer",
                "description": "The HTTP status code of the response.",
                "example": 200
              },
              "text": {
                "type": "string",
                "description": "The HTTP message that describes the response.",
                "example": "OK"
              }
            },
            "example": {
              "code": 200,
              "text": "OK"
            },
            "$$ref": "#/components/schemas/status"
          },
          "data": {
            "type": "array",
            "items": {}
          }
        },
        "example": {
          "status": {
            "code": 200,
            "text": "OK"
          },
          "data": []
        },
        "$$ref": "#/components/schemas/DestinationListDelete"
      },
      "example": {
        "status": {
          "code": 200,
          "text": "OK"
        },
        "data": []
      }
    }
  }
}
```

### 400

Bad Request

```json
{
  "description": "Bad Request",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "description": "Bad Request",
        "properties": {
          "statusCode": {
            "type": "integer",
            "example": 400,
            "description": "HTTP status code"
          },
          "error": {
            "type": "string",
            "example": "Bad Request",
            "description": "A brief description of the error"
          },
          "message": {
            "type": "string",
            "example": "Validation Error"
          },
          "txId": {
            "type": "string",
            "example": "d479k9i2b723"
          }
        },
        "$$ref": "#/components/schemas/BadRequestError"
      },
      "examples": {
        "example_bad_request": {
          "summary": "Bad Request Example Response",
          "value": {
            "statusCode": 400,
            "error": "Bad Request",
            "message": "Validation Error",
            "txId": "d479k9i2b723-abdj1-672635-45362"
          },
          "$$ref": "#/components/examples/400BadRequestExample"
        }
      }
    }
  },
  "$$ref": "#/components/responses/BadRequest"
}
```

### 401

Unauthorized

```json
{
  "description": "Unauthorized",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "description": "Unauthorized",
        "properties": {
          "statusCode": {
            "type": "integer",
            "example": 401,
            "description": "HTTP status code"
          },
          "error": {
            "type": "string",
            "example": "Unauthorized",
            "description": "The authorization header is missing or the token is unauthorized."
          },
          "txId": {
            "type": "string",
            "example": "a478k9i2b723"
          }
        },
        "$$ref": "#/components/schemas/UnauthorizedError"
      }
    }
  },
  "$$ref": "#/components/responses/Unauthorized"
}
```

### 403

Forbidden

```json
{
  "description": "Forbidden",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "description": "Forbidden",
        "properties": {
          "statusCode": {
            "type": "integer",
            "example": 403,
            "description": "HTTP status code"
          },
          "error": {
            "type": "string",
            "example": "Forbidden",
            "description": "The token is invalid."
          },
          "txId": {
            "type": "string",
            "example": "a478k9i2b723"
          }
        },
        "$$ref": "#/components/schemas/ForbiddenError"
      }
    }
  },
  "$$ref": "#/components/responses/Forbidden"
}
```

### 404

Not Found

```json
{
  "description": "Not Found",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "description": "Not Found",
        "properties": {
          "statusCode": {
            "type": "integer",
            "example": 404,
            "description": "HTTP status code"
          },
          "error": {
            "type": "string",
            "example": "Not Found",
            "description": "A resource specified in the URL was not found."
          },
          "txId": {
            "type": "string",
            "example": "a478k9i2b723"
          }
        },
        "$$ref": "#/components/schemas/NotFoundError"
      }
    }
  },
  "$$ref": "#/components/responses/NotFound"
}
```

### 500

Internal Server Error

```json
{
  "description": "Internal Server Error",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "description": "Internal Server Error",
        "properties": {
          "statusCode": {
            "type": "integer",
            "example": 500,
            "description": "HTTP status code"
          },
          "error": {
            "type": "string",
            "example": "Internal Server Error",
            "description": "The server can not process the request."
          },
          "message": {
            "type": "string",
            "example": "An internal server error occurred"
          },
          "txId": {
            "type": "string",
            "example": "l477k9i2b893"
          }
        },
        "$$ref": "#/components/schemas/ServerError"
      }
    }
  },
  "$$ref": "#/components/responses/ServerErr"
}
```

## Additional OpenAPI fields

```json
{
  "__originalOperationId": "deleteDestinationList"
}
```
