---
title: "removeActionSet(_:completionHandler:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmtrigger/removeactionset(_:completionhandler:)"
---

# removeActionSet(_:completionHandler:)

Removes an action set from the trigger.

## Declaration

```swift
func removeActionSet(_ actionSet: HMActionSet, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func removeActionSet(_ actionSet: HMActionSet) async throws
```

## Parameters

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

## See Also

### Managing Action Sets

- [actionSets](homekit/hmtrigger/actionsets.md)
- [addActionSet(_:completionHandler:)](homekit/hmtrigger/addactionset(_:completionhandler:).md)
