Help to remove brave browser

This is very embarrassing but somehow I installed the Brave browser on ArchLabs. I don’t recall the procedure but I got one of the community supported version and when I open the browser, it says something like no sand boxing and security could be compromised.

I think that I enable snap packages with the git command. Then went to the AUR to download and install the package. But now when I try sudo remove snap brave or yay -Rns brave, it get target not found.

Blockquote$ sudo snap remove brave
sudo: snap: command not found
┌ 1 ~
└> $ yay -Rns brave
error: target not found: brave> Blockquote

Sorry. I forgot this. Wanted to save to draft but hit the create topic button instead. This is the exact line at the top of the screen when I opened up the Brave browser.

“You are using an unsupported command-line flag: --no sandbox. Stability and security will suffer.”

If you installed the snap version then can you: re-install snap, remove brave with snap, remove snap, profit??

Failing that use a shell and the find or locate commands
eg.

sudo find / -iname '*brave*'

parse through the output to find out where it’s installed then remove it, either with a shell and rm or a file manager opened as root. It’s likely just one file if you don’t want to be able to execute it, but if you really want to remove it you’ll have to figure out which files/directories are owned by it and remove them. It also really depends on how you installed it as to where it might be, most system stuff on arch is in /usr and /usr/local, but for a user install things go into ~/.local. You’re welcome to post the output here but please use the preformatted text feature so it’s more legible, it’s the button that looks like </> or you can use Ctrl-Shift-c.

Cheers

sudo find / -iname '*brave*'
[sudo] password for john: 
find: ‘/run/user/1000/gvfs’: Permission denied
/usr/share/licenses/brave-bin
/usr/share/pixmaps/brave.png
/usr/share/applications/brave-browser.desktop
/usr/share/icons/ArchLabs-Light/24x24/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs-Light/24x24/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs-Light/24x24/apps/brave.svg
/usr/share/icons/ArchLabs-Light/24x24/apps/brave-browser.svg
/usr/share/icons/ArchLabs-Light/24x24/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs-Light/48x48/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs-Light/48x48/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs-Light/48x48/apps/brave.svg
/usr/share/icons/ArchLabs-Light/48x48/apps/brave-browser.svg
/usr/share/icons/ArchLabs-Light/48x48/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs-Light/64x64/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs-Light/64x64/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs-Light/64x64/apps/brave.svg
/usr/share/icons/ArchLabs-Light/64x64/apps/brave-browser.svg
/usr/share/icons/ArchLabs-Light/64x64/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs-Light/22x22/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs-Light/22x22/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs-Light/22x22/apps/brave.svg
/usr/share/icons/ArchLabs-Light/22x22/apps/brave-browser.svg
/usr/share/icons/ArchLabs-Light/22x22/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs-Light/16x16/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs-Light/16x16/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs-Light/16x16/apps/brave.svg
/usr/share/icons/ArchLabs-Light/16x16/apps/brave-browser.svg
/usr/share/icons/ArchLabs-Light/16x16/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs-Light/32x32/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs-Light/32x32/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs-Light/32x32/apps/brave.svg
/usr/share/icons/ArchLabs-Light/32x32/apps/brave-browser.svg
/usr/share/icons/ArchLabs-Light/32x32/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs-Dark/24x24/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs-Dark/24x24/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs-Dark/24x24/apps/brave.svg
/usr/share/icons/ArchLabs-Dark/24x24/apps/brave-browser.svg
/usr/share/icons/ArchLabs-Dark/24x24/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs-Dark/48x48/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs-Dark/48x48/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs-Dark/48x48/apps/brave.svg
/usr/share/icons/ArchLabs-Dark/48x48/apps/brave-browser.svg
/usr/share/icons/ArchLabs-Dark/48x48/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs-Dark/64x64/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs-Dark/64x64/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs-Dark/64x64/apps/brave.svg
/usr/share/icons/ArchLabs-Dark/64x64/apps/brave-browser.svg
/usr/share/icons/ArchLabs-Dark/64x64/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs-Dark/22x22/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs-Dark/22x22/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs-Dark/22x22/apps/brave.svg
/usr/share/icons/ArchLabs-Dark/22x22/apps/brave-browser.svg
/usr/share/icons/ArchLabs-Dark/22x22/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs-Dark/16x16/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs-Dark/16x16/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs-Dark/16x16/apps/brave.svg
/usr/share/icons/ArchLabs-Dark/16x16/apps/brave-browser.svg
/usr/share/icons/ArchLabs-Dark/16x16/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs-Dark/32x32/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs-Dark/32x32/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs-Dark/32x32/apps/brave.svg
/usr/share/icons/ArchLabs-Dark/32x32/apps/brave-browser.svg
/usr/share/icons/ArchLabs-Dark/32x32/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs/24x24/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs/24x24/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs/24x24/apps/brave.svg
/usr/share/icons/ArchLabs/24x24/apps/brave-browser.svg
/usr/share/icons/ArchLabs/24x24/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs/48x48/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs/48x48/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs/48x48/apps/brave.svg
/usr/share/icons/ArchLabs/48x48/apps/brave-browser.svg
/usr/share/icons/ArchLabs/48x48/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs/64x64/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs/64x64/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs/64x64/apps/brave.svg
/usr/share/icons/ArchLabs/64x64/apps/brave-browser.svg
/usr/share/icons/ArchLabs/64x64/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs/22x22/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs/22x22/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs/22x22/apps/brave.svg
/usr/share/icons/ArchLabs/22x22/apps/brave-browser.svg
/usr/share/icons/ArchLabs/22x22/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs/16x16/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs/16x16/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs/16x16/apps/brave.svg
/usr/share/icons/ArchLabs/16x16/apps/brave-browser.svg
/usr/share/icons/ArchLabs/16x16/apps/brave-browser-dev.svg
/usr/share/icons/ArchLabs/32x32/apps/brave-browser-beta.svg
/usr/share/icons/ArchLabs/32x32/apps/brave-browser-nightly.svg
/usr/share/icons/ArchLabs/32x32/apps/brave.svg
/usr/share/icons/ArchLabs/32x32/apps/brave-browser.svg
/usr/share/icons/ArchLabs/32x32/apps/brave-browser-dev.svg
/usr/share/xfce4/helpers/brave.desktop
/usr/lib/brave-bin
/usr/lib/brave-bin/brave_200_percent.pak
/usr/lib/brave-bin/resources/brave_rewards
/usr/lib/brave-bin/resources/brave_extension
/usr/lib/brave-bin/brave_100_percent.pak
/usr/lib/brave-bin/brave
/usr/lib/brave-bin/brave_resources.pak
/usr/bin/brave
/home/john/.config/BraveSoftware
/home/john/.config/BraveSoftware/Brave-Browser
/home/john/.config/BraveSoftware/Brave-Browser/biahpgbdmdkfgndcmfiipgcebobojjkp/1.0.8/tor-0.3.5.8-linux-brave-0
/home/john/.cache/BraveSoftware
/home/john/.cache/BraveSoftware/Brave-Browser
/home/john/.cache/yay/brave-bin
/home/john/.cache/yay/brave-bin/brave-bin-1:1.3.118-1-x86_64.pkg.tar.xz
/home/john/.cache/yay/brave-bin/brave-browser.desktop
/home/john/.cache/yay/brave-bin/brave-bin.sh
/home/john/.cache/yay/brave-bin/brave-bin-1.3.118.zip
/home/john/.cache/yay/brave
/home/john/.cache/yay/brave/brave-vaapi-enable.patch
/home/john/.cache/yay/brave/brave-browser.desktop
/home/john/.cache/yay/brave/brave-launcher
/var/lib/pacman/local/brave-bin-1:1.3.118-1
┌ 1 ~ 
└> $

Thanks natemaia, I used the command per your instructions. New user and I don’t quite understand the output. I hope that I used the proper preformatted text feature.

Sorry natemaia, I still have not figure out how to use the preformatted test feature. I hit the </> button. Went to the terminal and try to paste the output. Somehow, I am doing it all wrong.

sudo pacman -Rnsc brave-bin
rm -rf /home/john/.cache/BraveSoftware

Should clean it all up. The package you installed was brave-bin, in the future you can search for installed packages using

pacman -Qss '*name*'

That’s ok I edited it for you, instead of the preformatted text button you can surround the text with backticks on their own lines (the key beside 1 and below escape `)

Like this
```
Text here
```

Will look like this

Text here
natemaia, thank you so very much.  You are a great teacher.  Best regards.
1 Like