DeleteObject

Interface description

Delete the specified file.

Note: Only the bucket owner has permission to delete the file.

Request Syntax

DELETE GatewayURL/fid

Request Header

Don't forget to add your identity signature to the header.

Response

Response format: application/json

Status codeMessageResponse description

200

Block hash

Block hash generated when deleting files

400

InvalidHead.MissToken

Access key is empty

400

InvalidHead.Token

Access key error

400

InvalidParameter.Name

Fid error

403

NoPermission

Access key verification failed

500

InternalError

Server internal error

Request example

Request to delete the file with fid: c8a92e3b66ab1ecf1fba3b6355ce6e76a216d7b93b76097a9f2f2e20b3fc0761

# curl -X DELETE URL/eb46b512283bdbe28108da479497d51b71ed8fc159f953bb9353338849b8f4b9 -H "Account: cX..." -H "Message: xxx" -H "Signature: 0x..."

Last updated