> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: removeStyles()

## Article: removeStyles()

## Article Link: https://dev.wix.com/docs/sdk/host-modules/editor/react-elements/styles/remove-styles.md

## Article Content:

<!-- Source: packages/public-editor-platform-sdk/src/element/index.ts in wix-private/editor-platform -->
# removeStyles()

Removes style overrides from the selected component, reverting the specified properties to their manifest default values.

## Syntax

```ts
function removeStyles(values: ElementStylesRemoval): Promise<void>
```

## Parameters

| Name | Type | Description |
| :---- | :---- | :---- |
| `values.cssPropertiesKeys` | string[] | Keys of the CSS properties to remove. |
| `values.cssCustomPropertiesKeys` | string[] | Keys of the CSS custom properties to remove. |

## Returns

`Promise<void>`

## Example

```js
import { reactElements } from '@wix/editor';
import { CssPropertyType } from '@wix/public-editor-platform-sdk';

await reactElements.removeStyles({
  cssPropertiesKeys: [CssPropertyType.color],
});
```

## See also

- [setStyles()](https://dev.wix.com/docs/sdk/host-modules/editor/react-elements/styles/set-styles.md)
- [getStyles()](https://dev.wix.com/docs/sdk/host-modules/editor/react-elements/styles/get-styles.md)
- [getStyleDefinitions()](https://dev.wix.com/docs/sdk/host-modules/editor/react-elements/styles/get-style-definitions.md)
- [About the React Elements API](https://dev.wix.com/docs/sdk/host-modules/editor/react-elements/introduction.md)