There are two Libreoffice Writer icons in my system. Only one of them works to launch it. The other causes the mouse cursor to become a spinning wheel for ten seconds, before reverting to the normal arrow, and the application does not get launched.
In this screenshot of the Favorites bar it is the lowest icon that does not work:

In this screenshot of Dolphin it is the highlighted menu item that works. The first choice icon to the upper left of it does not:

In this screenshot of "Show Applications" the highlighted left most Libreoffice Writer icon does not work, but the one to its right does:

When Libreoffice Writer is launched using the icon that works, it is the second launcher icon that doesn't work that gets the red dot to show an instance is running. No red dot appears on the functioning launcher icon.
I need to get rid of the nonfunctional icon in all of the above three instances. What is the best way to do that? I am concerned there may be a nonfunctional software installation somewhere I would want to clean up. How would it be found? When I right click on the nonfunctional icons and select "Show Details" the "Software" application's window opens which is not able to find the icon's application in the computer, or anywhere for download. It shows the message "Sorry! there are no details for that application".
My OS is Ubuntu 22.04. The Libreoffice Writer version that does open is:
Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 32; OS: Linux 5.17; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 4:7.5.3~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded
I attempted to remove the installations by using the recommended commands given in the responses below. Here is the result:
stephen@stephen:~$ sudo snap remove libreoffice
[sudo] password for stephen:
snap "libreoffice" is not installed
stephen@stephen:~$ sudo apt remove libreoffice && sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'libreoffice' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
stephen@stephen:~$
In spite of this, the system Software application nevertheless shows there is a Libreoffice installation:

And the two Libreoffice Writter icons are still there.