[docs] [issue24796] Deleting names referencing from enclosed and enclosing scopes