If you try to delete a thing via the GUI in openHAB 4 and it does not get removed (status remains stuck on: removing), you can remove it using the CLI.
For this, login to the karaf console:
openhab-cli console
Username: openhab ; password: habopen
openhab:things remove thing:full:name