Description
To clear the entire library's earlier versions, you must disable the earlier version before requesting this API. Permission requirement: admin. For details about permissions, see Generate Access Token API. Note:
This interface will clear all historical versions of files in the entire library, releasing the corresponding space. Data cannot be recovered, so please proceed with caution.
This interface has a limit for frequency control, with a maximum of 1 call per minute. Do not invoke it frequently.
Request
Request Example
DELETE /api/v1/directory-history/{LibraryId}/library-history?access_token={AccessToken}
Request Parameter
|
LibraryId | Media Library ID, obtained after creating a media library in the media hosting console. See Create Media Library | String | Yes |
AccessToken | | String | Yes |
Request Body
This request has no request body.
Response
Response code
Successfully deleted. Return HTTP 202 Accepted. Asynchronous task processing in the backend.
Response Body
application/json
Response body example:
Response body field description:
Error Codes
This request operation has no special error messages. For common error messages, see Error Codes.