tweaked apiDeleted routines