Yes I do all of that,
The problem is when i use the apm to drop the package it deletes the package instance (package_id object) objects first before it runs the drop scripts setup in /sql dir.
Of course deleting this first is wrong OpenACS should be running my drops scripts first and THEN trying to run apm_package__delete ( ).
What have I done wrong to cause this misorder?