We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a974769 commit 282016dCopy full SHA for 282016d
src/includes/enriching-events/attachment-upload/apple.mdx
@@ -12,6 +12,11 @@ SentrySDK.configureScope { scope in
12
SentrySDK.captureMessage(message: "my message", block: { scope in
13
scope.addAttachment(fileAttachment)
14
})
15
+
16
+// Clear all attachments in the global Scope
17
+SentrySDK.configureScope { scope in
18
+ scope.clearAttachments()
19
+}
20
```
21
22
```objc {tabTitle:Objective-C}
@@ -30,4 +35,8 @@ SentryAttachment *fileAttachment =
30
35
[scope addAttachment:fileAttachment];
31
36
}];
32
37
38
39
+[SentrySDK configureScope:^(SentryScope *_Nonnull scope) {
40
+ [scope clearAttachments];
41
+}];
33
42
0 commit comments