removes toDelete keys