tencent cloud

Smart Media Hosting

Delete Recycle Bin Files

Download
Focus Mode
Font Size
Last updated: 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()
}


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback