---
title: FontFaceSet.clear()
slug: Web/API/FontFaceSet/clear
tags:
  - API
  - Method
  - Reference
  - clear
  - FontFaceSet
browser-compat: api.FontFaceSet.clear
---
{{APIRef("CSS Font Loading API")}}

The **`clear()`** method of the {{domxref("FontFaceSet")}} interface removes all fonts added via this interface. Fonts added with the {{cssxref("@font-face")}} rule are not removed.

## Syntax

```js
FontFaceSet.clear()
```

### Parameters

None.

### Return Value

{{jsxref("Undefined")}}.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

