deleteGyroCleanRecord(params: DeleteGyroCleanRecordParams)

Requires:
@ray-js/ray≥1.7.14Base library≥2.29.0

Description

Delete cleaning records for an inertial-navigation robot vacuum

Parameters

ParameterTypeRequiredDescription
YesContains Device ID and the record ID to delete

Return Value

Type: Promise<boolean>
Promise that resolves to a boolean indicating whether deletion succeeded

Examples

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>;
}