added logic to handle undo when feature is deleted through base deletion.