discuss.answer
I think you can extend your xpdo-schema with a gallery-object and have a composite-relation from your object to the gallery-object (connected by gallery-id).
This way the gallery should be removed, when your object is removed.
If you also want to remove all the related images and everything you can extend your object-class with a custom remove-function.
To get the gallery-ids in your input-options you can use a @EVAL - binding and run a snippet for example migxLoopCollection to get the galleries with its ids.