All Products
Search
Document Center

Object Storage Service:Why do I receive no notifications when I delete objects?

Last Updated:Jan 31, 2024

If you delete an object without specifying its version ID from a versioning-enabled bucket, only a delete marker is added to the object. The object is not deleted. In this case, the event notification rule is not triggered, and you do not receive a notification. An event notification rule is triggered if you specify the version ID of the object when you delete it.

Problem description

You specify DeleteObject and DeleteObjects event types in an event notification rule of a bucket. However, you do not receive a notification when you delete an object from the bucket.

Causes

Versioning is enabled for the bucket. If you do not specify the version ID of the object when you call the DeleteObject operation to delete the object, OSS does not permanently delete the object. OSS only adds a delete marker to the object. In this case, the event notification rule is not triggered, and you do not receive a notification.

Solutions

When you delete an object from a versioning-enabled bucket, specify the version ID of the object. For more information, see Manage objects in a versioning-enabled bucket.

References