---
title: "removeAction(forKey:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnactionable/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 a action.

## Discussion

Discussion If the node is currently running an action that matches the key, SceneKit removes that action from the node, skipping any remaining animation it would perform but keeping any changes already made to the node. Use this method to cancel actions you scheduled using the runAction(_:forKey:) or runAction(_:forKey:completionHandler:) method.

## See Also

### Canceling a Node’s Running Actions

- [removeAllActions()](scenekit/scnactionable/removeallactions().md)
