---
title: "removeBuffer(named:from:)"
framework: WebKit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, visionOS 27.0+]
path: "webkit/wkusercontentcontroller/removebuffer(named:from:)"
---

# removeBuffer(named:from:)

Removes a previously added data buffer from the given WKContentWorld.

## Declaration

```swift
@MainActor @preconcurrency func removeBuffer(named name: String, from contentWorld: WKContentWorld)
```

## Parameters

- `name`: The name of the buffer to remove.
- `contentWorld`: The WKContentWorld from which to remove the buffer.
