tencent cloud

Smart Media Hosting

Delete Recycle Bin Files

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 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()
}


Ajuda e Suporte

Esta página foi útil?

comentários