complete deleteKeysOnInsert