---
title: "removeAction(_:completionHandler:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmactionset/removeaction(_:completionhandler:)"
---

# removeAction(_:completionHandler:)

Removes an action from the action set.

## Declaration

```swift
func removeAction(_ action: HMAction, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func removeAction(_ action: HMAction) async throws
```

## Parameters

- `action`: The action to remove.
- `completion`: The block executed after the request is processed.

## See Also

### Defining the associated actions

- [actions](homekit/hmactionset/actions.md)
- [addAction(_:completionHandler:)](homekit/hmactionset/addaction(_:completionhandler:).md)
- [HMCharacteristicWriteAction](homekit/hmcharacteristicwriteaction.md)
- [HMAction](homekit/hmaction.md)
