HACS - Failed to set up

Try as I might I cannot get HACS to install.

I have followed the How To for removing it (https://hacs.xyz/docs/setup/remove) but when I reinstall get the red box around the integration and Failed to set up message.

Log entries I’m getting are as follows and I’ve no idea how to access the files, let alone how to resolve the listed issue.

Please can someone advise how I sort this.

TIA

Logger: homeassistant.util.json
Source: util/json.py:33
First occurred: 02:47:33 (1 occurrences)
Last logged: 02:47:33

Could not parse JSON content: /config/.storage/hacs.repositories
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/util/json.py”, line 33, in load_json
return json.loads(fdesc.read()) # type: ignore[no-any-return]
File “/usr/local/lib/python3.9/codecs.py”, line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8b in position 4: invalid start byte

Logger: homeassistant.config_entries
Source: util/json.py:39
First occurred: 02:47:33 (1 occurrences)
Last logged: 02:47:33

Error setting up entry for hacs
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/util/json.py”, line 33, in load_json
return json.loads(fdesc.read()) # type: ignore[no-any-return]
File “/usr/local/lib/python3.9/codecs.py”, line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8b in position 4: invalid start byte

Same here did you find a solution?

Error setting up entry for hacs
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 33, in load_json
    return json.loads(fdesc.read())  # type: ignore[no-any-return]
  File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.9/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 11404 column 3 (char 454688)

Solution in my case was to first remove HACS in accordance with the instructions

Then I accessed HA file system via my PC where I found there were a load of HACS relented folders, not seen in file manager, that I could delete.

Then HACS installed properly.