<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFAttributedStringRemoveAttribute(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFAttributedStringRemoveAttribute"
  },
  "title" : "CFAttributedStringRemoveAttribute(_:_:_:)"
}
-->

# CFAttributedStringRemoveAttribute(_:_:_:)

Removes the value of a single attribute over a specified range.

```
func CFAttributedStringRemoveAttribute(_ aStr: CFMutableAttributedString!, _ range: CFRange, _ attrName: CFString!)
```

## Parameters

`aStr`

The mutable attributed string to modify.

`range`

The range of `aStr` from which to remove the specified attribute. `range` must not exceed the bounds of `aStr`.

`attrName`

The name of the attribute to remove.

## Discussion

It is *not* an error of the specified attribute does not exist over the given range.

---

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)