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

# removeAnimation(forKey:)

Remove the animation object with the specified key.

## Declaration

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

## Parameters

- `key`: The identifier of the animation to remove.

## See Also

### Layer animations

- [add(_:forKey:)](quartzcore/calayer/add(_:forkey:).md)
- [animation(forKey:)](quartzcore/calayer/animation(forkey:).md)
- [removeAllAnimations()](quartzcore/calayer/removeallanimations().md)
- [animationKeys()](quartzcore/calayer/animationkeys().md)
