---
schema_version: "1"
id: bfe89f9217cebebdcc6573fbce0147eb996f5f9ed0a805d568a4fc8de12ac20a
title: clearReference()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-component-clearreference.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-component-clearreference.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 97901d3a6500c027580c093c307207eb9f5c59e5ba8a03c5f92915ce75a6a8d2
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# clearReference()

Clears a live reference for the value passed in using property syntax. For example, if you use `aura:set` to set a value and later want to reset the value using `component.set()`, clear the reference before resetting the value.

## Signature

`clearReference(String key)`

## Parameters

**_key_:** Type: `String`. The data key for which to clear the reference. For example, `"v.attributeName"`.

