---
title: "DELETE /attachments/{attachmentId}"
method: DELETE
path: "/attachments/{attachmentId}"
---

# DELETE /attachments/{attachmentId}

`DELETE /attachments/{attachmentId}`

Deletes an attachment. Supports all attachment types.

## Path parameters

- `attachmentId` string, required

## Response `200`

Success

- DeleteAttachmentResponse
  - `Attachment` object — Information about the deleted attachment.
    - `CoreNetworkId` string — The ID of a core network.
    - `CoreNetworkArn` string — The ARN of a core network.
    - `AttachmentId` string — The ID of the attachment.
    - `OwnerAccountId` string — The ID of the attachment account owner.
    - `AttachmentType` 'CONNECT' | 'SITE_TO_SITE_VPN' | 'VPC' | 'TRANSIT_GATEWAY_ROUTE_TABLE' — The type of attachment.
    - `State` 'REJECTED' | 'PENDING_ATTACHMENT_ACCEPTANCE' | 'CREATING' | 'FAILED' | 'AVAILABLE' | 'UPDATING' | 'PENDING_NETWORK_UPDATE' | 'PENDING_TAG_ACCEPTANCE' | 'DELETING' — The state of the attachment.
    - `EdgeLocation` string — The Region where the edge is located.
    - `ResourceArn` string — The attachment resource ARN.
    - `AttachmentPolicyRuleNumber` integer — The policy rule number associated with the attachment.
    - `SegmentName` string — The name of the segment attachment.
    - `Tags` Tag[] — The tags associated with the attachment.
      - `Key` string — <p>The tag key.</p> <p>Constraints: Maximum length of 128 characters.</p>
      - `Value` string — <p>The tag value.</p> <p>Constraints: Maximum length of 256 characters.</p>
    - `ProposedSegmentChange` object — The attachment to move from one segment to another.
      - `Tags` Tag[] — The list of key-value tags that changed for the segment.
        - `Key` string — <p>The tag key.</p> <p>Constraints: Maximum length of 128 characters.</p>
        - `Value` string — <p>The tag value.</p> <p>Constraints: Maximum length of 256 characters.</p>
      - `AttachmentPolicyRuleNumber` integer — The rule number in the policy document that applies to this change.
      - `SegmentName` string — The name of the segment to change.
    - `CreatedAt` string, date-time — The timestamp when the attachment was created.
    - `UpdatedAt` string, date-time — The timestamp when the attachment was last updated.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ResourceNotFoundException
- `483` — ConflictException
- `484` — ThrottlingException
- `485` — InternalServerException

---

[API](https://skmtc.net/aws/apis/networkmanager.md) · [All operations](https://skmtc.net/aws/apis/networkmanager/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/networkmanager/versions/4ea0acef56bf/schema)
