tencent cloud

Smart Media Hosting

Empty Recycle Bin

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-01-07 14:27:57

Description

Empty the recycle bin.
Note:
Required permissions: admin, space_admin, or delete_recycled. For details on permissions, see Generate Access Token Interface.
When the interface for emptying the recycle bin is called, files in the recycle bin will first become invisible within the recycle bin, and the deletion and space release operations will be performed asynchronously.

Request

Request Example

DELETE /api/v1/recycled/{LibraryId}/{SpaceId}?access_token={AccessToken}&user_id={UserId}

Request Parameter

Request parameters.
Description
Type
Required or Not
LibraryId
Media Library ID, obtained after creating a media library in the media hosting console. See Create Media Library
String
Yes
SpaceId
Space ID. If the media library is in single-tenant mode, this parameter is fixed as hyphen (`-`); if the media library is in multi-tenant mode, you must specify this parameter. See Create Tenant Space
String
No
AccessToken
Access token. For Public Read Media Library or tenant space, this parameter is not specified. Otherwise, you must specify this parameter. See Generate Access Token
String
No
UserId
User identity recognition. When the permission corresponding to the access token is administrator permission and the user identity recognition when applying for the access token is empty, it is used to temporarily specify user identity. For details, see Generate Access Token API
String
No

Request Body

This request does not have a request body.

Response

Response code

Creation succeeded, return HTTP 204 No Content.

Response Body

This request does not have a response body.

Error Codes

This request operation has no special error messages. For common error messages, see Error Codes.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan