Only allow delete while editing an item.