---
title: "AEDeleteParam(_:_:)"
framework: coreservices
role: symbol
role_heading: Function
path: coreservices/1444338-aedeleteparam
---

# AEDeleteParam(_:_:)

Deletes a keyword-specified parameter from an Apple event record.

## Declaration

```swift
func AEDeleteParam(_ theAppleEvent: UnsafeMutablePointer<AppleEvent>!, _ theAEKeyword: AEKeyword) -> OSErr
```

## Parameters

- `theAppleEvent`: A pointer to the Apple event or Apple event record to delete the parameter from. See doc://com.apple.documentation/documentation/coreservices/appleevent.
- `theAEKeyword`: The keyword that specifies the parameter to delete. Some keyword constants are described in doc://com.apple.documentation/documentation/coreservices/apple_events/1527206-keyword_parameter_constants. See doc://com.apple.documentation/documentation/coreservices/aekeyword.

## Return Value

Return Value A result code. See Result Codes.

## Discussion

Discussion Thread safe starting in OS X v10.2.

## See Also

### Deleting Descriptors

- [AEDeleteItem(_:_:)](coreservices/1447164-aedeleteitem.md)
