---
title: "removeAnimation(forKey:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnanimatable/removeanimation(forkey:)"
---

# removeAnimation(forKey:)

Removes the animation attached to the object with the specified key.

## Declaration

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

## Parameters

- `key`: A string identifying an attached animation to remove.

## See Also

### Managing Animations

- [addAnimation(_:forKey:)](scenekit/scnanimatable/addanimation(_:forkey:).md)
- [animation(forKey:)](scenekit/scnanimatable/animation(forkey:).md)
- [animationKeys](scenekit/scnanimatable/animationkeys.md)
- [removeAllAnimations()](scenekit/scnanimatable/removeallanimations().md)
- [removeAnimation(forKey:fadeOutDuration:)](scenekit/scnanimatable/removeanimation(forkey:fadeoutduration:).md)
