Well, if you were able to delete a non empty package, you should be able to change an entry in object directory .
Close every session that could lock the program, and execute transaction SE03 to change the entry R3TR PROG <program>. Also lock for a pencil icon to switch from display to change on any popup screen.
Regards,
Raymond