tencent cloud

Smart Media Hosting

Product Introduction
Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
Purchase Guide
Quick Start
Create Media Library
Initiate request
Service Level API Document
History
Introduction
API Category
Making API Requests
PaaS Service APIs
Official Cloud Disk APIs
Data Types
Error Codes
Business Level API Document
Introduction
Access Token Operation API
Tenant Space Operation API
File Operation API
Directory or Album Operation API
Recycle Bin Operation API
Quota Operation API
Query Task Operation API
Search Operation API
Historical Version Operations API
Directory and File Batch Operation API
Collection Operation API
Error Codes
SDK Documentation
Android SDK
iOS SDK
HarmonyOS SDK
FAQs
Enterprise Network Disk
Product Introduction
Purchase Guide
Quick Start
FAQs
Service Level Agreement
Glossary

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()
}


도움말 및 지원

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

피드백