Uninstall the agent - Django
To uninstall the Atatus Python agent, follow the below steps.
From settings.py file, remove
atatus.contrib.django
line fromINSTALLED_APPS
and remove the atatus configration.copy# settings.py INSTALLED_APPS = [ # ... 'atatus.contrib.django', ]
copy# settings.py ATATUS = { 'APP_NAME': 'Python App', 'LICENSE_KEY': 'lic_apm_xxxxxxx' }
Uninstall the atatus agent using pip. Remove
atatus
from requirements.txt file if any.copypip uninstall atatus
copy# requirements.txt atatus
Restart your Django server after the uninstall step completes.
Uninstall the agent - Flask
To uninstall the Atatus Python agent, follow the below steps.
From the main file, remove the following lines.
copyfrom 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)
Uninstall the atatus agent using pip. Remove
atatus[flask]
from requirements.txt file if any.copypip uninstall 'atatus[flask]'
copy# requirements.txt atatus[flask]
Restart your Flask server after the uninstall step completes.