MCPcopy
hub / github.com/WebODM/WebODM / delete_plugin

Function delete_plugin

app/plugins/functions.py:352–356  ·  view source on GitHub ↗
(plugin_name)

Source from the content-addressed store, hash-verified

350 return p
351
352def delete_plugin(plugin_name):
353 Plugin.objects.get(pk=plugin_name).delete()
354 if os.path.exists(get_plugins_persistent_path(plugin_name)):
355 shutil.rmtree(get_plugins_persistent_path(plugin_name))
356 clear_plugins_cache()
357
358def get_site_settings():
359 return Setting.objects.first()

Callers 1

plugin_deleteMethod · 0.90

Calls 5

clear_plugins_cacheFunction · 0.85
existsMethod · 0.80
deleteMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected