The device does not turn on, by connecting to the current it starts charging as in the picture, with the red LED flashing, then it turns off. If I try to turn it on (always under charge), it gets to the HTC logo then it turns off, if I press power + vol- the bootloader starts, but selecting any option remains blocked.
I connected it to the computer with windows 10 and it detects QHSUSB_DLOAD. I searched the forum and found this:
forum.xda-developers.com
so i tried to use ubuntu 12.04.05, but it gave as result: 9008 Qualcomm, Inc. Gobi Wireless Modem (QDL mode)
My question is: can the battery be completely discharged, (I have been using it for 6 years) and then replace it, or is it another problem?
Looking at the bootloader O.S disappeared, why?
Thanks for your attention and sorry for the English.
I connected it to the computer with windows 10 and it detects QHSUSB_DLOAD. I searched the forum and found this:

[UNBRICK][BETA] HTC Unbricking Project
OP status: [WIP] This will fix devices which were bricked due to firmware incompatibility. This can be caused with the way HTC handles the firmware updates in it's m7's OTAs. If you've been flashing from a 3.x firmware to a 5.x firmware via OTA...
so i tried to use ubuntu 12.04.05, but it gave as result: 9008 Qualcomm, Inc. Gobi Wireless Modem (QDL mode)
My question is: can the battery be completely discharged, (I have been using it for 6 years) and then replace it, or is it another problem?
Looking at the bootloader O.S disappeared, why?
Thanks for your attention and sorry for the English.