When in scene mode, operation searches the object in master collection to unlink. But object can be in any collection. So iterate through all collections present in scene to unlink the object Pull Request: https://projects.blender.org/blender/blender/pulls/112955