Why Can't I Delete an Object?
Problem Description
An existing object cannot be deleted.
Problem Analysis
Possible causes are described here in order of how likely they are to occur. To locate the root cause as fast as possible, go through the list in order, from most likely to least.
If the fault persists after a possible cause is rectified, move down the list to the next most likely cause.
Possible Cause |
Solution |
---|---|
Local network is faulty. |
Check whether the network connectivity between the local computer and OBS is normal. If the network is faulty, restore the network connection. |
The current account does not have the permissions required to delete the object. |
For details, see Checking Whether the Current Account Has the Permission to Delete the Object. |
The bucket where the object is stored has versioning enabled. |
For details, see Permanently Deleting an Object from the Deleted Objects List. |
Other |
For details, see Submitting a Service Ticket. |
Checking Whether the Current Account Has the Permission to Delete the Object
If the "Insufficient permissions. Contact the administrator." message is displayed when you are trying to delete the object, do as follows:
- Check whether the ACL of the bucket has write access configured.
- In the bucket list on OBS Console, click the bucket you need to delete the object from. The Objects page is displayed.
- In the navigation pane, choose Permissions > Bucket ACLs.
- In the Access to Bucket column, check whether the Write access is configured for the required user type.
- Grant the write access to the required user type.
- Locate the user type and click Edit in the Operation column.
- In the dialog box that is displayed, select Write for Access to Bucket.
- Click OK.
- Ask the bucket owner whether the DeleteObject or DeleteObjectVersion permission is granted in the bucket policy.
- If the required permission is not granted, ask the bucket owner to grant them.
- If the object still cannot be deleted after the required permission is granted, submit a service ticket for help.
Permanently Deleting an Object from the Deleted Objects List
![](https://support.huaweicloud.com/eu/obs_faq/public_sys-resources/note_3.0-en-us.png)
If an object is stored in a bucket with versioning enabled, deleting this object will only move the object to the Deleted Objects list, and the object will still incur charges. To stop being billed, you need to delete the object permanently.
- Check whether the bucket where the object is stored has versioning enabled.
- In the bucket list on OBS Console, click the bucket you need to delete the object from. The Objects page is displayed.
- In the navigation pane, choose Overview.
- In the Basic Configurations area, check the versioning status.
- If versioning is enabled for the bucket, go to the next step.
- If versioning is disabled or suspended for the bucket but the object still cannot be deleted, submit a service ticket for help.
- Permanently delete an object.
- Click the Deleted Objects tab. The deleted object list is displayed.
- Locate the object and click Permanently Delete in the Operation column.
- Click OK.
Submitting a Service Ticket
If the problem persists, submit a service ticket to contact Huawei Cloud customer service for assistance.
Buckets and Objects FAQs
- Why Am I Unable to Create a Bucket?
- Why Am I Unable to Upload an Object?
- Why Am I Unable to Download an Object?
- Why Can't I Delete a Bucket?
- Why Can't I Delete an Object?
- What Is the Relationship Between Bucket Storage Classes and Object Storage Classes?
- Can I Rename an Object?
- Can I Modify the Region of a Bucket?
- Can I Edit Objects in OBS Online?
- How Do I Obtain the Access Path to an Object?
- Why Can't I Search for Certain Objects in My Bucket?
- How Do I Preview Objects in OBS in a Browser Online?
- What Should I Do If an Error Message Is Displayed When I Use Internet Explorer to Access an Object URL That Contains Chinese Characters?
- With CDN Acceleration Enabled, Why Are the Objects in My OBS Bucket Directly Downloaded When I Access Them?
- Why Is an Error Reported Even If CORS Has Been Configured?
- How Do I Batch Delete a Large Number of Objects from a Bucket or Empty a Bucket?
- How Do I Change the Enterprise Project Where My Bucket Belongs?
- How Do I Upload Objects Larger Than 5 GB?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more