Correctly delete view