---
title: "removeAll(resource:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/animationlibrarycomponent/removeall(resource:)"
---

# removeAll(resource:)

Removes all the component’s references to an animation resource.

## Declaration

```swift
mutating func removeAll(resource: AnimationResource)
```

## Parameters

- `resource`: An animation resource with references that the component removes.
