---
title: "releaseReference(at:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/referencecomponent/releasereference(at:)"
---

# releaseReference(at:)

Releases the reference an entity holds.

## Declaration

```swift
static func releaseReference(at entity: Entity) throws
```

## Parameters

- `entity`: The entity that holds the doc://com.apple.RealityKit/documentation/RealityKit/ReferenceComponent to release.
