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

## albumFileDelete

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

### 描述

删除时光相册录像文件

### 参数

`Params`

| 参数 | 类型 | 必填 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| `params` | `IAlbumFileDeleteReq` | 是 | - | 请求体 |

### 引用对象

##### `interface` IAlbumFileDeleteReq

| 属性 | 类型 | 描述 |
| --- | --- | --- |
| `stockId` | `number` | 库存 id |
| `gid` | `string` | 家庭 id |
| `timeAlbumId` | `number` | 相册 id |
| `albumRecordIds` | `string` | 文件 id 列表，多个使用英文逗号分隔，如 10001,10002 |


### 示例代码

#### 请求示例

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

albumFileDelete({
  stockId: 1,
  gid: '194137',
  timeAlbumId: 100,
  albumRecordIds: '10001,10002',
})
  .then((r) => console.log(r))
  .catch(console.error);
```

#### 返回示例

```json
{ "result": true }
```
