tencent cloud

Smart Media Hosting

Delete Recycle Bin Files

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-01-07 11:03:11

Introduction

This document provides an API overview about recycle bin item deletion and SDK sample code.
API
Operation Description
Delete Project from Recycle Bin
Delete projects from recycle bin in batches
Empty Recycle Bin

Deleting a Project From the Recycle Bin

Feature Overview

Delete projects from Recycle Bin.

Example Code

try {
val checkSuccess: Boolean = smh.deleteRecycledItem(
// Recycle bin file id
itemId = 123456
)
} catch (e: Exception) {
e.printStackTrace()
}

Deleting Projects From the Recycle Bin in Batches

Feature Overview

Delete Recycle Bin projects in batches.

Example Code

try {
val checkSuccess: Boolean = smh.deleteRecycledItems(
// Recycle bin file id list
itemIds = listOf(123456, 123459)
)
} catch (e: Exception) {
e.printStackTrace()
}

Empty Recycle Bin

Feature Overview

Empty the Recycle Bin.

Example Code

try {
val checkSuccess: Boolean = smh.clearRecycledItem()
} catch (e: Exception) {
e.printStackTrace()
}


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백