---
title: "remove(withKeyword:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsappleeventdescriptor/remove(withkeyword:)"
---

# remove(withKeyword:)

Removes the receiver’s descriptor identified by the specified keyword.

## Declaration

```swift
func remove(withKeyword keyword: AEKeyword)
```

## Parameters

- `keyword`: A keyword (a four-character code) that identifies the descriptor to remove.

## Discussion

Discussion The receiver must be an Apple event or Apple event record. Currently provides no indication if an error occurs.

## See Also

### Working With Record Descriptors

- [forKeyword(_:)](foundation/nsappleeventdescriptor/forkeyword(_:).md)
- [keywordForDescriptor(at:)](foundation/nsappleeventdescriptor/keywordfordescriptor(at:).md)
- [setDescriptor(_:forKeyword:)](foundation/nsappleeventdescriptor/setdescriptor(_:forkeyword:).md)
