---
id: fast-element.controller.removestyles
title: Controller.removeStyles() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [Controller](./fast-element.controller.md) &gt; [removeStyles](./fast-element.controller.removestyles.md)

## Controller.removeStyles() method

Removes styles from this element. Providing an HTMLStyleElement will detach the element instance from the shadowRoot.

<b>Signature:</b>

```typescript
removeStyles(styles: ElementStyles | HTMLStyleElement): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  styles | [ElementStyles](./fast-element.elementstyles.md) \| HTMLStyleElement | the styles to remove. |

<b>Returns:</b>

void
