tencent cloud

Smart Media Hosting

Deleting a Single File

Download
聚焦模式
字号
最后更新时间: 2026-01-07 10:49:06
本文档由 AI 翻译

Introduction

This document provides an API overview about deleting files and SDK sample code.
API
Operation Description
Deletes files.

SDK API Reference

For specific parameters and method descriptions of all SDK APIs, please see SDK API Reference.

Deletes files.

Feature Description

Used to delete files.

Sample Code

QCloudSMHDeleteFileRequest * request = [QCloudSMHDeleteFileRequest new];
request.libraryId = @"libraryId";
request.spaceId = @"spaceId";
request.filePath = @"test.jpg";
// When the media library enables the recycle bin, this parameter specifies whether to permanently delete the file or move it to the Recycle Bin. 1: permanently delete, 0: move to Recycle Bin. Default is 0.
request.permanent = 0;
[request setFinishBlock:^(id _Nullable outputObject, NSError * _Nullable error) {

}];
[[QCloudSMHService defaultSMHService] deleteFile:request];


帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈