Skip to content

希望为插件提供一个通用方案来清除数据 #5741

Open
@guqing

Description

@guqing

Your current Halo version

2.14.0

Describe this feature

目前插件卸载之后,插件的自定义模型之类的数据会残留在 Halo 中没有办法删除,如果靠插件自己去处理可能会千奇百怪,因此建议为这个场景提供一种通用的方式或约束来实现,如在 BasePlugin 中添加一个方法,并在插件页面加一个按钮点击后请求通用 API 来调用 BasePlugin 中清理数据的方法来实现等,这有待讨论

Additional information

/kind improvement
/area core
/area plugin

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues or PRs related to the Halo Corearea/pluginIssues or PRs related to the Plugin Providerkind/improvementCategorizes issue or PR as related to a improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions