---
title: "CFAttributedStringRemoveAttribute(_:_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfattributedstringremoveattribute(_:_:_:)"
---

# CFAttributedStringRemoveAttribute(_:_:_:)

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

## Declaration

```swift
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

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

## See Also

### Modifying a CFMutableAttributedString

- [CFAttributedStringBeginEditing(_:)](corefoundation/cfattributedstringbeginediting(_:).md)
- [CFAttributedStringEndEditing(_:)](corefoundation/cfattributedstringendediting(_:).md)
- [CFAttributedStringGetMutableString(_:)](corefoundation/cfattributedstringgetmutablestring(_:).md)
- [CFAttributedStringReplaceString(_:_:_:)](corefoundation/cfattributedstringreplacestring(_:_:_:).md)
- [CFAttributedStringReplaceAttributedString(_:_:_:)](corefoundation/cfattributedstringreplaceattributedstring(_:_:_:).md)
- [CFAttributedStringSetAttribute(_:_:_:_:)](corefoundation/cfattributedstringsetattribute(_:_:_:_:).md)
- [CFAttributedStringSetAttributes(_:_:_:_:)](corefoundation/cfattributedstringsetattributes(_:_:_:_:).md)
