<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/Response/Action-swift.struct/removeAttachmentSegment(id:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels38LanguageModelExecutorGenerationChannelV8ResponseV6ActionV23removeAttachmentSegment2idAGSS_tFZ"
  },
  "title" : "removeAttachmentSegment(id:)"
}
-->

# removeAttachmentSegment(id:)

Creates an action that removes an attachment segment from the entry.

```
static func removeAttachmentSegment(id: String) -> LanguageModelExecutorGenerationChannel.Response.Action
```

## Parameters

`id`

The identifier of the attachment segment to remove.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)