If you call DeleteObject to delete an object stored within a versioning-enabled bucket without specifying the object's version ID, the event notification rule will be triggered. However, performing the DeleteObjects operation without specifying the version IDs will not trigger event notifications. Therefore, you need to specify the version IDs of objects when calling the DeleteObjects operation if you want notifications to be triggered.
Description
The DeleteObjects event type is specified in the event notification rule configured for a bucket, but when files are deleted, the event notification is not triggered.
Possible cause
If you do not specify the version IDs of the objects stored within a versioning-enabled bucket when you call the DeleteObjects operation, OSS does not permanently delete these objects but adds delete markers to them. In this case, the event notification rule is not triggered, and you do not receive notifications.
Solution
Specify the version IDs of the objects when you call the DeleteObjects
operation. For more information, see Manage objects in a versioning-enabled bucket.