<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [FacetsService](./x-components.facetsservice.md) &gt; [deselect](./x-components.facetsservice.deselect.md)

## FacetsService.deselect() method

Deselects filter, adding it to the store if it was not present.

**Signature:**

```typescript
deselect(filter: Filter, metadata?: FiltersMetadata): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  filter | Filter | The filter to deselect. |
|  metadata | [FiltersMetadata](./x-components.filtersmetadata.md) | _(Optional)_ An optional object with the event metadata. |

**Returns:**

void

