This bad habit is also very common among Photoshop users. Deleting and erasing parts of a layer’s content is a very destructive way of editing. To avoid losing image content you should always consider utilizing one of the following features in Photoshop.
A Pixel Mask
A Vector Mask
A Clipping Mask
The easiest way to hide parts of a layer is by adding a mask to the layer. Masking will only temporarily hide the selected parts of a layer, which can always be made visible again by deactivating the mask.