Uninstall the agent - Django

To uninstall the Atatus Python agent, follow the below steps.

  1. From settings.py file, remove atatus.contrib.django line from INSTALLED_APPS and remove the atatus configration.

    copy
    icon/buttons/copy
    # settings.py
    INSTALLED_APPS = [
       # ...
       'atatus.contrib.django',
    ]
    
    copy
    icon/buttons/copy
    # settings.py
    ATATUS = {
       'APP_NAME': 'Python App',
       'LICENSE_KEY': 'lic_apm_xxxxxxx'
    }
    
  2. Uninstall the atatus agent using pip. Remove atatus from requirements.txt file if any.

    copy
    icon/buttons/copy
    pip uninstall atatus
    
    copy
    icon/buttons/copy
    # requirements.txt
    atatus
    
  3. Restart your Django server after the uninstall step completes.

Uninstall the agent - Flask

To uninstall the Atatus Python agent, follow the below steps.

  1. From the main file, remove the following lines.

    copy
    icon/buttons/copy
    from atatus.contrib.flask import Atatus
    
    # remove atatus agent in your app.
    app.config['ATATUS'] = {
        'APP_NAME': 'Python App',
        'LICENSE_KEY': 'lic_apm_xxxxxxx'
    }
    atatus = Atatus(app)
    
  2. Uninstall the atatus agent using pip. Remove atatus[flask] from requirements.txt file if any.

    copy
    icon/buttons/copy
    pip uninstall 'atatus[flask]'
    
    copy
    icon/buttons/copy
    # requirements.txt
    atatus[flask]
    
  3. Restart your Flask server after the uninstall step completes.