1Panel icon indicating copy to clipboard operation
1Panel copied to clipboard

[Feature] Can I choose to keep the data when deleting the application? If not, delete the folder.

Open duxdyu opened this issue 1 year ago • 8 comments

1Panel Version

v1.10.22-lts

Please describe your needs or suggestions for improvements

现在删除应用,还会在/opt/1panel/apps下面留着应用的文件夹,但是文件夹里面是空的,按逻辑来说,要么里面留着数据,要么整个文件夹一起删除

Please describe the solution you suggest

No response

Additional Information

No response

duxdyu avatar Dec 20 '24 00:12 duxdyu

存留的文件夹是应用的 key , 比如 mysql ,mysql 这个文件夹下面会有多个你安装的 mysql 不过确实需要删除 我们会在 v2 版本增加此流程

zhengkunwang223 avatar Dec 20 '24 02:12 zhengkunwang223

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The saved folder is the key of the application, such as mysql. There will be multiple mysqls you installed under this mysql folder. But it does need to be deleted. We will add this process in version v2.

wanghe-fit2cloud avatar Dec 20 '24 02:12 wanghe-fit2cloud

存留的文件夹是应用的 key , 比如 mysql ,mysql 这个文件夹下面会有多个你安装的 mysql 不过确实需要删除 我们会在 v2 版本增加此流程

那会考虑删除应用但是保留持久化的应用数据的选项吗

duxdyu avatar Dec 20 '24 02:12 duxdyu

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The saved folder is the key of the application, such as mysql. There will be multiple mysql installed by you under this mysql folder, but they do need to be deleted. We will add this process in the v2 version.

Will you consider the option of deleting the application but retaining the persistent application data?

wanghe-fit2cloud avatar Dec 20 '24 02:12 wanghe-fit2cloud

存留的文件夹是应用的 key , 比如 mysql ,mysql 这个文件夹下面会有多个你安装的 mysql 不过确实需要删除 我们会在 v2 版本增加此流程

那会考虑删除应用但是保留持久化的应用数据的选项吗

这个不会 因为删除应用就应该删除数据 保留数据会给下次安装增加困扰 如果你想删除应用 但是保留数据 可以直接从容器页面删除容器 这样数据也会保留

zhengkunwang223 avatar Dec 20 '24 03:12 zhengkunwang223

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The saved folder is the key of the application, such as mysql. There will be multiple mysql installed by you under this mysql folder, but it does need to be deleted. We will add this process in the v2 version.

Will the option of deleting the application but retaining the persistent application data be considered?

This won’t happen because deleting the app means deleting the data. Retaining data will cause trouble during the next installation If you want to delete the app but keep the data, you can delete the container directly from the container page and the data will be retained.

wanghe-fit2cloud avatar Dec 20 '24 03:12 wanghe-fit2cloud

存留的文件夹是应用的 key , 比如 mysql ,mysql 这个文件夹下面会有多个你安装的 mysql 不过确实需要删除 我们会在 v2 版本增加此流程

那会考虑删除应用但是保留持久化的应用数据的选项吗

这个不会 因为删除应用就应该删除数据 保留数据会给下次安装增加困扰 如果你想删除应用 但是保留数据 可以直接从容器页面删除容器 这样数据也会保留

但是这样操作,应用页面里应用还会留着,这时候删应用会留着数据吗,目前只想到改名字能留着数据

duxdyu avatar Dec 20 '24 03:12 duxdyu

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The saved folder is the key of the application, such as mysql. There will be multiple mysql installed by you under this mysql folder, but it does need to be deleted. We will add this process in the v2 version.

Will you consider the option of deleting the application but retaining the persistent application data?

This won’t happen because deleting the app requires deleting the data. Keeping the data will cause trouble during the next installation. If you want to delete the app but keep the data, you can delete the container directly from the container page and the data will be retained.

But if you do this, the application will still be retained on the application page. Will deleting the application at this time retain the data? Currently, I only think that changing the name can retain the data.

wanghe-fit2cloud avatar Dec 20 '24 03:12 wanghe-fit2cloud

v2.0.0 版本已发布。

wanghe-fit2cloud avatar Jun 12 '25 05:06 wanghe-fit2cloud