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

# removeActionSet(_:completionHandler:)

Removes an action set from the home.

## 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

### Creating action sets

- [actionSets](homekit/hmhome/actionsets.md)
- [addActionSet(withName:completionHandler:)](homekit/hmhome/addactionset(withname:completionhandler:).md)
- [executeActionSet(_:completionHandler:)](homekit/hmhome/executeactionset(_:completionhandler:).md)
- [builtinActionSet(ofType:)](homekit/hmhome/builtinactionset(oftype:).md)
- [HMActionSet](homekit/hmactionset.md)
