How to uninstall Antivirus for Mac if the standard uninstaller doesn’t work

This is a workaround for the situations when Bitdefender Uninstaller fails or doesn’t exist in /Library/Bitdefender/Central/Agent/BitdefenderUninstaller/

 

METHOD 1

1. Click Go on the top menu bar and choose Go to Folder…

2. Type in /Library and click Go

3. Inside the Library folder, open Application Support and delete Antivirus for Mac and Bitdefender, highlighted in the image below.

IMPORTANT! If you encounter errors while trying to delete any of these folders, continue with METHOD 2, otherwise continue with steps 4 -6.

4. Go back to Library folder and delete the Bitdefender folder

5. While still inside the Library folder, go to Extensions and delete: TMProtection.kext, FileProtect.kext and SelfProtect.kext

6. Go to Applications and delete Antivirus for Mac and Bitdefender folder.

 


 

METHOD 2

IMPORTANT! If you have a backup disk, we recommend you to make a fresh backup before proceeding further. See more details in this article: https://support.apple.com/HT201250

 

1. Restart your Mac and press Command (⌘)-R during the restart until you see the Apple logo. In some cases you will be prompted to choose the language. Choose your desired language and click on the arrow at the bottom to continue.

1722 1 1

2. The Utilities window will be displayed (this example is for Sierra OS, but it looks very similar on the previous OS versions).

1722 2

3. Select Disk Utility and then click on Continue

4. Select your startup disk (in the example Macintosh HD):

• If it’s already mounted, you will see the Unmount option. In this case proceed with step 5.

• If it’s not mounted, click on Mount. If it’s locked by FileVault, you will be prompted for your administrator password to unlock it. Enter the same password you use at Mac login.

1722 3

5. Quit Disk Utility to return to the Utilities window: click on Disk Utility in the menu bar (next to the Apple logo) and select Quit Disk Utility or simply close the window.

6. In the menu bar click on Utilities and select Terminal.

1722 4

7. In the Terminal window type the following set of commands. 

WARNING: Make sure you type the commands exactly as you see them below. Failure to do so may result in data loss.

At the end of each line, press Return/Enter on your keyboard:

LS /Volumes/ 
cd /Volumes/Macintosh\ HD/Library/Extensions/
LS
rm –rf SelfProtect.kext
LS
cd /Volumes/Macintosh\ HD/Library/
LS
rm –rf Bitdefender
LS

Details on each line are available below.

a. First, we want to use the “LS” command from LIST (you can use lower letters for this command, as you can see in the screenshots below) to make sure the startup disk (Macintosh HD) is mounted. So, we type (there is a space after the “ls” command):

LS /Volumes/ 

and press Return. This will display all the mounted volumes like in the picture below. If you see your startup disk (Macintosh HD) you may continue with step b). Otherwise, it is possible that you haven’t mounted the startup disk. In this case, quit the Terminal window, go back to Disk Utility and mount the disk. You may also run a First Aid to fix any potential disk errors.

1722 5 5

Quick Tip! Type the first characters of the argument (in this case, /Volumes/) and then press the TAB key on your keyboard. This will auto-complete the name of the argument. For the example above type ls /Vol and then press TAB.

b. Now let’s see if we have the SelfProtect.kext extension in the Extensions folder. We will use the same “LS”  command.

NOTE: You can notice that after Macintosh we put a back slash “\” and a space followed by HD. This is because the startup disk name has two words. If the startup disk name had one word, we would use the forward slash “/” and no spaces. For example, if the name was MacintoshHD, the command would be: cd /Volumes/MacintoshHD/Library/Extensions/

cd /Volumes/Macintosh\ HD/Library/Extensions/

LS

 

NOTE: Remember to use the auto-complete function (TAB key) for each directory name in the command string. It will help you avoid typos.

c. If SelfProtect.kext is present, the next step is to delete it. To do that we will use the “rm -rf” command (from REMOVE). We will enter the command below:

rm –rf SelfProtect.kext

Now let’s check if the file was deleted. Use the command below.

LS

Quick Tip! Use the Up arrow to use the previous command (navigate through the history of commands) and the Down arrow if you wish to go back to the latest commands. Use the Left and Right arrows to navigate to the left or right of the command line.

d. The SelfProtect extension was removed and we can move to the next step: check if you have the Bitdefender folder and remove it. Let’s try all the commands at once (you still have to press Return/Enter after each one).

cd /Volumes/Macintosh\ HD/Library/

LS

rm –rf Bitdefender

LS

e. The Bitdefender folder has been removed. You can now restart in normal mode. To do that, click on the Apple logo in the menu bar and select Restart.

8. Finally, you can install a fresh copy of Bitdefender Antivirus for Mac from your Central account. See more details in the installation article: How to install Bitdefender Antivirus for Mac.

 

Related Articles

Was this article helpful?
Rating: 1.0. From 19 votes.
Please wait...

Sorry about that

How can we improve it?

For any issues with Bitdefender you can always contact us using this form

Popular How-To Videos