---
name: "deleteDeviceFile"
mode: "kit"
versionRequirements:
  - { name: "@tuya-miniapp/cloud-api", version: "1.0.5" }
---

## deleteDeviceFile

> [VERSION] @tuya-miniapp/cloud-api >= 1.0.5

### 描述

删除宠物媒体文件

### 参数

`Params`

| 参数 | 类型 | 必填 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| `fileNos` | `string[]` | 是 | - | 需删除云存文件 id 列表 |
| `devId` | `string` | 是 | - | 设备 id |

### 示例代码

#### 请求示例

```typescript
import { deleteDeviceFile } from '@tuya-miniapp/cloud-api';

deleteDeviceFile(['cloud-file-id-1', 'cloud-file-id-2'], 'vdevo167504******003')
  .then((ok) => {
    console.log(ok);
  })
  .catch();
```

#### 返回示例

```json
true
```
