All Products
Search
Document Center

ENS:DeleteObject

Last Updated:Jan 29, 2024

Deletes an object.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ObjectKeystringYes

The name of the source file.

image5
BucketNamestringYes

The name of the bucket.

tets

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

A5626B44-0189-443E-9816-D951F596CC89

Examples

Sample success responses

JSONformat

{
  "RequestId": "A5626B44-0189-443E-9816-D951F596CC89"
}

Error codes

HTTP status codeError codeError message
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.
403AccessDeniedauth is not valid
404NoSuchBucketThe specified bucket does not exist
500InternalErrorThe request processing has failed due to some unknown error

For a list of error codes, visit the Service error codes.