删除文件 - DeleteFile

删除文件

Requests

Syntax:

DELETE / HTTP/1.1
Host: .cn-bj.ufileos.com
Authorization: 

Request Headers

Name Type DescriptionRequired
AuthorizationString删除请求的授权签名 Yes

Request Parameters

说明:未使用。

Responses

Response Headers

Name Type Description
Content-LengthInteger响应body部分的长度
X-SessionId String 请求失败时返回本次请求的会话Id

Response Elements

Name Type Description
RetCodeInteger执行失败时的错误代码
ErrMsg String 执行失败时的错误提示

Example

Example Request:

DELETE /demofile HTTP/1.1
Host: .cn-bj.ufileos.com
Authorization: AutoAI demouser@ucloud.cn13424346821929713944:S5FVD2w613MKb/hisjaqHdjvn9U=

Example Response:

HTTP/1.1 204 NoContent
Content-Length: 0