---
title: "remove(attachment:)"
framework: groupactivities
role: symbol
role_heading: Instance Method
path: "groupactivities/groupsessionjournal/remove(attachment:)"
---

# remove(attachment:)

Removes the specified attachment from the journal on all sessions.

## Declaration

```swift
final func remove(attachment: GroupSessionJournal.Attachment) async throws
```

## Parameters

- `attachment`: The attachment object associated with the item. You receive this object when you call the doc://com.apple.GroupActivities/documentation/GroupActivities/GroupSessionJournal/add(_:) or doc://com.apple.GroupActivities/documentation/GroupActivities/GroupSessionJournal/add(_:metadata:) method.

## Discussion

Discussion Call this method to remove an attachment that is no longer relevant. For example, you might remove an attachment containing a photo in response to someone deleting that photo from the activity. When you remove an attachment, the journal object updates the array of attachments and sends it to all participants. Remove any attachments from your app that aren’t still in the array.
