From 6011839f48d15cb77073088ba44f0f97cbf33f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 8 Oct 2021 16:42:59 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20New=20plugin=20lifecycle=20callback?= =?UTF-8?q?=20`on=5Fplugin=5Fpending=5Funinstall`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Will be called by the plugin manager when a plugin is about to be uninstalled through it. Useful for any cleanup tasks a plugin might want to do when it gets uninstalled. Note that this method does not HAVE to be called if the plugin is uninstalled outside of OctoPrint by deleting/pip uninstall'ing the plugin. --- docs/plugins/concepts.rst | 13 +++++++++++++ src/octoprint/plugin/core.py | 6 ++++++ src/octoprint/plugin/types.py | 8 ++++++++ src/octoprint/plugins/pluginmanager/__init__.py | 8 ++++++++ 4 files changed, 35 insertions(+) diff --git a/docs/plugins/concepts.rst b/docs/plugins/concepts.rst index 5e1c624cf..1be34d43b 100644 --- a/docs/plugins/concepts.rst +++ b/docs/plugins/concepts.rst @@ -35,9 +35,22 @@ any :ref:`settings overlays