---
title: "removeAction(forKey:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/sknode/removeaction(forkey:)"
---

# removeAction(forKey:)

Removes an action associated with a specific key.

## Declaration

```swift
func removeAction(forKey key: String)
```

## Parameters

- `key`: A string that uniquely identifies an action.

## Mentioned in

Controlling Actions Precisely by Using Names

## Discussion

Discussion If an action is found that matches the key, it is removed from the node.

## See Also

### Running Actions

- [Getting Started with Actions](spritekit/getting-started-with-actions.md)
- [run(_:)](spritekit/sknode/run(_:).md)
- [run(_:completion:)](spritekit/sknode/run(_:completion:).md)
- [run(_:withKey:)](spritekit/sknode/run(_:withkey:).md)
- [speed](spritekit/sknode/speed.md)
- [isPaused](spritekit/sknode/ispaused.md)
- [action(forKey:)](spritekit/sknode/action(forkey:).md)
- [hasActions()](spritekit/sknode/hasactions().md)
- [removeAllActions()](spritekit/sknode/removeallactions().md)
