---
name: "deleteGyroCleanRecord"
mode: "api"
versionRequirements:
  - { name: "@ray-js/ray", version: "1.7.14" }
  - { name: "Base library", version: "2.29.0" }
title: "Delete Cleaning Record"
---

## deleteGyroCleanRecord

> [VERSION] @ray-js/ray >= 1.7.14 | Base library >= 2.29.0

### Description

Delete cleaning records for an inertial-navigation robot vacuum

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `params` | `DeleteGyroCleanRecordParams` | Yes | Contains Device ID and the record ID to delete |

### Return Value

Type: `Promise<boolean>`

Promise that resolves to a boolean indicating whether deletion succeeded

### Referenced Types

##### `interface` DeleteGyroCleanRecordParams

| Property | Type | Description |
| --- | --- | --- |
| `devId` | `string` | Device ID |
| `uuid` | `string` | recordId of the cleaning record; multiple records separated by commas |


### Examples

```tsx
import React from 'react';
import { Button, deleteGyroCleanRecord } from '@ray-js/ray';

export default function Demo() {
  const handleDelete = async () => {
    const success = await deleteGyroCleanRecord({
      devId: 'your-device-id',
      uuid: 'record-id-1',
    });
    console.log('Delete result:', success);
  };
  return <Button onClick={handleDelete}>Delete record</Button>;
}
```
