Added erase_view function.