When working on complex tasks, bones can sometimes get in the way, or conversely, you may need them to make changes, so the situation changes.
Here is how to hide bones.
Method 1: Hide the armature from the Outliner window

Click the eye icon to the right of the armature to toggle it to the closed state.
Method 2: Switch layers from the Object Data Properties in the Properties window
This is how to hide bones by selecting an empty layer.
Open the "Object Data Properties" tab and select a layer that does not have a "●" mark from the layer section.
Method 3: Hide bones directly from the 3D window
This is how to hide them using the hide shortcut key "H".
Select the bones in the 3D window and press the "H" key.
Method 4: Hide only the bones from the "Viewport Overlays" menu in the 3D window
Hide only the "Bones" from the items in the "Viewport Overlays" menu at the top right.
Select the "Viewport Overlays" pull-down button to display the menu.
You can hide the bones by unchecking the checkbox for bones under objects.
Type the shortcut key "H", or
Method 5: Disable the 3D viewport overlay
This is a quicker way to toggle than Method 4.
Click the "Viewport Overlays" button in the top right to disable the feature.
To execute this with a shortcut, type "Shift + Alt + Z".