---
title: "removeAttachmentSegment(id:)"
framework: foundationmodels
role: symbol
role_heading: Type Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "foundationmodels/languagemodelexecutorgenerationchannel/response/action-swift.struct/removeattachmentsegment(id:)"
---

# removeAttachmentSegment(id:)

## Declaration

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

## See Also

### Response action constants

- [appendText(_:segmentID:tokenCount:)](foundationmodels/languagemodelexecutorgenerationchannel/response/action-swift.struct/appendtext(_:segmentid:tokencount:).md)
- [replaceTextSegment(_:segmentID:tokenCount:)](foundationmodels/languagemodelexecutorgenerationchannel/response/action-swift.struct/replacetextsegment(_:segmentid:tokencount:).md)
- [updateMetadata(_:)](foundationmodels/languagemodelexecutorgenerationchannel/response/action-swift.struct/updatemetadata(_:).md)
