fix(plugin): can't delete extra package

This commit is contained in:
zhongwencool 2022-01-12 15:02:11 +08:00 committed by Zhongwen Deng
parent 1ef2b8d06c
commit dcc0ff673f
2 changed files with 2 additions and 0 deletions

View File

@ -311,6 +311,7 @@ delete_package(Name) ->
case emqx_plugins:ensure_stopped(Name) of
ok ->
emqx_plugins:ensure_disabled(Name),
emqx_plugins:purge(Name),
emqx_plugins:delete_package(Name);
Error -> Error
end.

View File

@ -24,6 +24,7 @@
, ensure_enabled/1
, ensure_enabled/2
, ensure_disabled/1
, purge/1
, delete_package/1
]).