Deletes an object.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DeleteObject |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ObjectKey |
string |
Yes |
The name of the file. |
image5 |
| BucketName |
string |
Yes |
The name of the bucket. |
tets |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
A5626B44-0189-443E-9816-D951F596CC89 |
Examples
Success response
JSON format
{
"RequestId": "A5626B44-0189-443E-9816-D951F596CC89"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 500 | InternalError | The request processing has failed due to some unknown error | |
| 403 | AccessDenied | Auth is not valid. | This account does not have access permissions. |
| 403 | UserDisable | The user has been disabled due to arrears. | The user has been disabled due to arrears. |
| 404 | NoSuchBucket | The specified bucket does not exist. | The requested bucket does not exist. |
| 404 | NoSuchKey | The specified key does not exist. | The specified key does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.