---
title: "removeValue(forAnnotationKey:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfannotation/removevalue(forannotationkey:)"
---

# removeValue(forAnnotationKey:)

Removes a value from the annotation’s dictionary.

## Declaration

```swift
func removeValue(forAnnotationKey key: PDFAnnotationKey)
```

## Parameters

- `key`: A doc://com.apple.pdfkit/documentation/PDFKit/PDFAnnotationKey or appropriate string from the Adobe PDF Specification.

## See Also

### Modifying Annotation Attributes

- [annotationKeyValues](pdfkit/pdfannotation/annotationkeyvalues.md)
- [value(forAnnotationKey:)](pdfkit/pdfannotation/value(forannotationkey:).md)
- [setValue(_:forAnnotationKey:)](pdfkit/pdfannotation/setvalue(_:forannotationkey:).md)
- [setBoolean(_:forAnnotationKey:)](pdfkit/pdfannotation/setboolean(_:forannotationkey:).md)
- [setRect(_:forAnnotationKey:)](pdfkit/pdfannotation/setrect(_:forannotationkey:).md)
- [PDFAnnotationKey](pdfkit/pdfannotationkey.md)
