At the moment the IDs are given in a weird array where the keys are the package IDs to delete and the values are meaningless (as far as I can tell) due to the way the form is submitted. I'll probably set it up to convert the array to just a regular array of IDs so the functions are a bit more abstracted and we can use them anywhere in the code. Probably do this in a patch after all the other functions are done.
-- Callan Barrett