1# @ohos.bluetooth (Bluetooth) (System API) 2 3The **Bluetooth** module provides classic Bluetooth capabilities and Bluetooth Low Energy (BLE) scan and advertising. 4 5> **NOTE** 6> 7> - The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. 8> - The APIs provided by this module are no longer maintained since API version 9. You are advised to use profile APIs of [@ohos.bluetooth.ble](js-apis-bluetooth-ble.md). 9> - This topic describes only the system APIs provided by the module. For details about its public APIs, see [@ohos.bluetooth (Bluetooth)](js-apis-bluetooth.md). 10 11## Modules to Import 12 13```js 14import bluetooth from '@ohos.bluetooth'; 15``` 16 17## bluetooth.cancelPairedDevice<sup>8+</sup><sup>(deprecated)</sup><a name="cancelPairedDevice"></a> 18 19cancelPairedDevice(deviceId: string): boolean 20 21Cancels a paired remote device. 22 23> **NOTE**<br> 24> This API is supported since API version 8 and deprecated since API version 9. Use [bluetoothManager.cancelPairedDevice](js-apis-bluetoothManager-sys.md#bluetoothmanagercancelpaireddevicedeprecated) instead. 25 26**System API**: This is a system API. 27 28**Required permissions**: ohos.permission.DISCOVER_BLUETOOTH 29 30**System capability**: SystemCapability.Communication.Bluetooth.Core 31 32**Parameters** 33 34| Name | Type | Mandatory | Description | 35| -------- | ------ | ---- | ------------------------------------- | 36| deviceId | string | Yes | Address of the remote device to cancel, for example, XX:XX:XX:XX:XX:XX.| 37 38**Return value** 39 40| Type | Description | 41| ------- | -------------------------- | 42| boolean | Returns **true** if the operation is successful; returns **false** otherwise.| 43 44**Example** 45 46```js 47let result : boolean = bluetooth.cancelPairedDevice("XX:XX:XX:XX:XX:XX"); 48``` 49