Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
DELETE /api/v1/directory/{LibraryId}/{SpaceId}/{DirPath}?permanent={Permanent}&access_token={AccessToken}&user_id={UserId}
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 a hyphen ( -); if the media library is in multi-tenant mode, you must specify this parameter. For retrieval, see create tenant space. | String | No |
DirPath | Directory path or album name. For multi-level directory, use slash ( /) to separate, such as foo/bar | String | Yes |
Permanent | When the media library enables the recycle bin, this parameter specifies whether to move the file to the Recycle Bin or permanently delete it. 1: permanently delete, 0: move to Recycle Bin. Default is 0. | String | No |
AccessToken | Access token. To obtain it, see Generate Access Token | String | Yes |
UserId | User identity recognition. When the access token corresponds to admin permission and the user identity recognition during token application is empty, it is used to temporarily specify user identity. For details, see Generate Access Token API | String | No |
{"recycledItemId": 123}
Response Parameters | Description | Type |
recycledItemId | Recycle Bin project ID, used to permanently delete or restore a designated project from the Recycle Bin. | Int |
피드백