# Deleting an element or an attribute from the XML tree structure

## About this task

From an established XML tree, you may need to delete an element or an attribute. To do this, proceed as follows:

## Procedure

1. In the XML tree you need to edit, right-click the element or the attribute you need to delete.
2. In the pop-up contextual menu, select Delete.

   Then the selected element or attribute is deleted, including all of the sub-elements or the attributes attached to it underneath.