`> remove the app record from the apps structure`,
as a note, the app has only been registered in the apps structure by the time this error would occur only for packaged apps.