---
title: USBDevice.reset()
slug: Web/API/USBDevice/reset
tags:
  - API
  - Method
  - Reference
  - USB
  - USBDevice
  - WebUSB
  - WebUSB API
  - reset
browser-compat: api.USBDevice.reset
---
{{APIRef("WebUSB API")}}{{SeeCompatTable}}

The **`reset()`** method of the {{domxref("USBDevice")}}
interface returns a {{jsxref("promise")}} that resolves when the device is reset and all
app operations canceled and their promises rejected.

## Syntax

```js
var promise = USBDevice.reset()
```

### Parameters

None.

### Return value

A {{jsxref("promise")}}.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
