How to delete the same object with a macro?

When finalizing files, I always need to delete
a bitmap that is packed with many objects.
Any script that can do that? and that this action can be performed on selected objects and also on the powerclip.