Api: fix onDelete event handler

broadcast and save object configuration