---
url: "https://vueda.dev/v3/reference/api/js/stores/storeTheme/methods/clearComponent.md"
title: "clearComponent"
---

# clearComponent

## Overview

Clears a component with the given name.

## Signature

`clearComponent(componentName)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-componentName">componentName</span> | `string` | yes | The name of the component to remove, along with its variants. |

### Returns

`void`

## Source

`client/lib/stores/storeTheme.js:124`
