---
schema_version: "1"
id: 34e699e49f861646a08e04eb8a380d32a35269c7de22b1f556fa70d376c14f8a
title: removeClass()
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-util-removeclass.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-util-removeclass.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 26afc544472251833a93158f733395904194e2485c0e5efede2aa29f400de1f2
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# removeClass()

Removes a CSS class from a component.

## Signature

`removeClass(Object element, String newClass)`

## Parameters

**_element_:** Type: `Object`. The component to remove the class from.

**_newClass_:** Type: `String`. The CSS class to be removed.

## Sample Code

```javascript
//find a component with aura:id="myCmp" in markup
var myCmp = component.find("myCmp");
$A.util.removeClass(myCmp, "myClass");
```

