---
updatedAt: 2026-06-05T15:04:13.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/linode-api/llms.txt
---

# Delete a destination

Delete a specific logs destination. Include the appropriate `destinationId` as a path parameter. This operation can only be accessed by account [users](ref:get-users) with _unrestricted_ access. Talk to your local account administrator about access management. You can't delete a destination that's part of an active logs stream:

1. With your target `destinationId` stored, run the [List streams](ref:get-stream) operation and store the `id` for all streams that are using the destination.

2. Run the [Update a stream](ref:put-stream) operation for each stored stream `id`, and remove the target destination.


**Permissions and scopes**

To call this operation, you need the following:

- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).

  - Scopes: `monitor:read_write`


**CLI**

```shell
linode-cli streams destination-delete 456
```

[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)

# OpenAPI definition

````json
{
  "components": {
    "securitySchemes": {
      "oauth": {
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.linode.com/oauth/authorize",
            "scopes": {
              "account:read_only": "Allows access to GET information about your account.",
              "account:read_write": "Allows access to all endpoints related to your account.",
              "child_account:read_only": "Allows access to GET information about deprecated parent/child operations.",
              "child_account:read_write": "Allows access to deprecated parent/child operations.",
              "databases:read_only": "Allows access to GET information about databases.",
              "databases:read_write": "Allows access to all endpoints related to databases.",
              "domains:read_only": "Allows access to GET Domains on your account.",
              "domains:read_write": "Allows access to all Domain endpoints.",
              "events:read_only": "Allows access to GET your Events.",
              "events:read_write": "Allows access to all endpoints related to your Events.",
              "firewall:read_only": "Allows access to GET information about your Firewalls.",
              "firewall:read_write": "Allows access to all Firewall endpoints.",
              "images:read_only": "Allows access to GET your Images.",
              "images:read_write": "Allows access to all endpoints related to your Images.",
              "ips:read_only": "Allows access to GET your ips.",
              "ips:read_write": "Allows access to all endpoints related to your ips.",
              "linodes:read_only": "Allows access to GET Linodes on your account.",
              "linodes:read_write": "Allow access to all endpoints related to your Linodes.",
              "lke:read_only": "Allows access to GET LKE Clusters on your account.",
              "lke:read_write": "Allows access to all endpoints related to LKE Clusters on your account.",
              "longview:read_only": "Allows access to GET your Longview Clients.",
              "longview:read_write": "Allows access to all endpoints related to your Longview Clients.",
              "monitor:read_only": "Allows access to Monitor (Akamai Cloud Pulse) data.",
              "monitor:read_write": "Allows access to GET Monitor (Akamai Cloud Pulse) data.",
              "nodebalancers:read_only": "Allows access to GET NodeBalancers on your account.",
              "nodebalancers:read_write": "Allows access to all NodeBalancer endpoints.",
              "object_storage:read_only": "Allows access to GET information related to your Object Storage.",
              "object_storage:read_write": "Allows access to all Object Storage endpoints.",
              "stackscripts:read_only": "Allows access to GET your StackScripts.",
              "stackscripts:read_write": "Allows access to all endpoints related to your StackScripts.",
              "volumes:read_only": "Allows access to GET your Volumes.",
              "volumes:read_write": "Allows access to all endpoints related to your Volumes.",
              "vpc:read_write": "Allows access to all endpoints related to VPC and Subnet creation, updating, and deletion."
            },
            "tokenUrl": "https://login.linode.com/oauth/token"
          }
        },
        "type": "oauth2"
      },
      "personalAccessToken": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "externalDocs": {
    "description": "See documentation for Akamai's Linode API",
    "url": "https://techdocs.akamai.com/linode-api/reference"
  },
  "info": {
    "description": "\"[Read the API documentation](https://techdocs.akamai.com/linode-api/reference/api).\"",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Monitor",
    "version": "4.229.1"
  },
  "openapi": "3.0.1",
  "paths": {
    "/{apiVersion}/monitor/streams/destinations/{destinationId}": {
      "delete": {
        "description": "Delete a specific logs destination. Include the appropriate `destinationId` as a path parameter. This operation can only be accessed by account [users](https://techdocs.akamai.com/linode-api/reference/get-users) with _unrestricted_ access. Talk to your local account administrator about access management. You can't delete a destination that's part of an active logs stream:\n\n1. With your target `destinationId` stored, run the [List streams](https://techdocs.akamai.com/linode-api/reference/get-stream) operation and store the `id` for all streams that are using the destination.\n\n2. Run the [Update a stream](https://techdocs.akamai.com/linode-api/reference/put-stream) operation for each stored stream `id`, and remove the target destination.\n\n\n**Permissions and scopes**\n\nTo call this operation, you need the following:\n\n- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).\n\n  - Scopes: `monitor:read_write`\n\n\n**CLI**\n\n```shell\nlinode-cli streams destination-delete 456\n```\n\n[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Linode API",
          "url": "https://techdocs.akamai.com/linode-api/reference/delete-destination"
        },
        "operationId": "delete-destination",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {},
                "schema": {
                  "description": "The API responds with an empty object.",
                  "maxProperties": 0,
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/added-empty-obj.yaml"
                  }
                }
              }
            },
            "description": "Logs destination successfully deleted."
          },
          "default": {
            "content": {
              "application/json": {
                "example": {
                  "errors": [
                    {
                      "reason": "Invalid JSON"
                    }
                  ]
                },
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "errors": {
                      "description": "Any warnings associated with a response.",
                      "items": {
                        "additionalProperties": false,
                        "description": "An object for describing a single error that occurred during the processing of a request.",
                        "properties": {
                          "field": {
                            "description": "The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as `null` if the error is not specific to any single element of the request.",
                            "example": "fieldname",
                            "type": "string"
                          },
                          "reason": {
                            "description": "What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to [Open a support ticket](https://techdocs.akamai.com/linode-api/reference/post-ticket) or perform some other action before you can complete the request successfully.",
                            "example": "fieldname must be a valid value",
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error-object.yaml"
                        }
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "See [Errors](https://techdocs.akamai.com/linode-api/reference/errors) for the range of possible error response codes."
          }
        },
        "security": [
          {
            "personalAccessToken": []
          },
          {
            "oauth": [
              "monitor:read_write"
            ]
          }
        ],
        "summary": "Delete a destination",
        "tags": [
          "Logs"
        ],
        "x-akamai": {
          "tabs": [
            {
              "syntax": "linode-cli streams destination-delete 456",
              "title": "CLI",
              "url": "https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli"
            },
            {
              "syntax": "monitor:read_write",
              "title": "OAuth scopes",
              "url": "https://techdocs.akamai.com/linode-api/reference/get-started#oauth"
            }
          ]
        },
        "x-linode-cli-action": "destination-delete",
        "x-linode-grant": "read_write"
      },
      "parameters": [
        {
          "description": "__Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta.",
          "in": "path",
          "name": "apiVersion",
          "required": true,
          "schema": {
            "enum": [
              "v4",
              "v4beta"
            ],
            "example": "v4",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/api-version-path.yaml"
          }
        },
        {
          "description": "The unique identifier assigned to the logs destination. Run the [List destinations](https://techdocs.akamai.com/linode-api/reference/get-destinations) operation and store the `id` for the applicable one.",
          "in": "path",
          "name": "destinationId",
          "required": true,
          "schema": {
            "example": 234,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/aclp-destination-id.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/aclp-stream-destination.yaml",
        "path-info": "/{apiVersion}/monitor/streams/destinations/{destinationId}"
      },
      "x-linode-cli-command": "streams"
    }
  },
  "servers": [
    {
      "url": "https://api.linode.com"
    }
  ],
  "tags": [
    {
      "description": "Akamai Cloud Pulse lets you capture log data across multiple Akamai Cloud services and deliver it to the destination of your choice. These logs can help you improve operational efficiency, enhance security, ensure compliance, and reduce the overhead of managing your Akamai Cloud services.",
      "name": "Logs"
    }
  ],
  "x-akamai": {
    "auth-type": "OAUTH",
    "file-path": "monitor-1.yaml"
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
````

# Sibling pages

* [Create a destination](https://techdocs.akamai.com/linode-api/reference/post-destination.md)
* [List destinations](https://techdocs.akamai.com/linode-api/reference/get-destinations.md)
* [Get a destination](https://techdocs.akamai.com/linode-api/reference/get-destination.md)
* [Update a destination](https://techdocs.akamai.com/linode-api/reference/put-destination.md)
* [Get a destination's history](https://techdocs.akamai.com/linode-api/reference/get-destination-history.md)
* [Create a stream](https://techdocs.akamai.com/linode-api/reference/post-stream.md)
* [List streams](https://techdocs.akamai.com/linode-api/reference/get-streams.md)
* [Get a stream](https://techdocs.akamai.com/linode-api/reference/get-stream.md)
* [Update a stream](https://techdocs.akamai.com/linode-api/reference/put-stream.md)
* [Get a stream's history](https://techdocs.akamai.com/linode-api/reference/get-stream-history.md)
* [Delete a stream](https://techdocs.akamai.com/linode-api/reference/delete-stream.md)