Move attachments from one module to another with Deluge

Move attachments from one module to another with Deluge

I have created a button that works just like the convert button for my custom modules. I would like this custom function to move any attachments in this record to the new module. I can't seem to find any documentation on how this can be accomplished.