reg/tests: Modify delete_tree() to support the use of registry views.