You can choose to uninstall Bot Agent from a macOS device if you no longer want to use it for deploying automations.

Choose one of the following options to uninstall Bot Agent from your macOS device:
  • Completely uninstall all the files and folders from directories
    Note: Complete uninstallaton removes all Bot Agent data, cache, logs, Control Room user registration details, and so on. Therefore, this method of removing Bot Agent is recommended when you no longer want to use a specific macOS as a Bot Agent device.

    In order to completely remove Bot Agent from a macOS device, ensure that you remove all the folders and files from the following directories:

    Name Default location
    Bot Agent installation folder /Library/Application Support/AutomationAnywhere/BotAgent
    Registration file location /Library/Application Support/aai
    Global Cache folder location /Library/Caches/AAI/NM
    Note: The above directories can be accessed from the root level.
  • Remove only Bot Agent files
    Note: This method of uninstalling is recommended if you intend to use a specific macOS as a Bot Agent device.

    You can choose this option to remove only the Bot Agent folder that contains the related files from the following location:

    /Library/Application Support/AutomationAnywhere/BotAgent folder

    This option of removing the Bot Agent folder and the files ensures that you can continue with your automations when you update Bot Agent to the latest available version.

You can uninstall Bot Agent from your macOS device either by running the Bot Agent uninstall wizard or through the silent uninstall script.

Procedure

  1. Navigate to the following location to find the Bot Agent uninstaller:
    /Applications/Utility
  2. Double-click AutomationAnywhere Bot Agent Uinstall.app.
    A prompt to uninstall Bot Agent is displayed.
  3. Select one of the following options:
    • Yes - To completely uninstall all the Bot Agent files, folders, cache, device registration details, and so on.
    • No - To only uninstall Bot Agent application from macOS device.
  4. After the uninstall is complete, click Ok.
    Bot Agent is uninstalled from you macOS device based on the option you have selected.

Silent uninstallation using script

  1. Go to the Terminal application on your macOS.
  2. Run one of the following scripts to uninstall Bot Agent:
    • sudo sh /Application/Utilities/Automation Anywhere Bot Agent Uninstall.app/Contents/MacOS/uninstall_silent.sh

      Run this script if you want to completely uninstall all the Bot Agent files, folders, cache, device registration details, and so on.

    • sudo sh '/Applications/Utilities/Automation Anywhere Bot Agent Uninstall.app/Contents/MacOS/uninstall_silent.sh' savedata

      Run this script if you want to only uninstall Bot Agent application from macOS device.

    Bot Agent is uninstalled from you macOS device based on the uninstallation script you run.