Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
duxdyu opened this issue Dec 20, 2024 · 8 comments
Assignees
Milestone

Comments

@duxdyu
Copy link

duxdyu commented Dec 20, 2024

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

@wanghe-fit2cloud wanghe-fit2cloud changed the title [Feature] 删除应用的时候能不能选择保留数据,不保留的话就把文件夹删掉 [Feature] Can I choose to keep the data when deleting the application? If not, delete the folder. Dec 20, 2024
@zhengkunwang223
Copy link
Member

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

@wanghe-fit2cloud
Copy link
Member

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.

@duxdyu
Copy link
Author

duxdyu commented Dec 20, 2024

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

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

@wanghe-fit2cloud
Copy link
Member

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?

@zhengkunwang223
Copy link
Member

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

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

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

@wanghe-fit2cloud
Copy link
Member

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.

@duxdyu
Copy link
Author

duxdyu commented Dec 20, 2024

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

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

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

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

@wanghe-fit2cloud
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants