<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKUserContentController/removeBuffer(named:from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:So23WKUserContentControllerC6WebKitE12removeBuffer5named4fromySS_So14WKContentWorldCtF"
  },
  "title" : "removeBuffer(named:from:)"
}
-->

# removeBuffer(named:from:)

Removes a previously added data buffer from the given `WKContentWorld`.

```
@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.

---

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)