Describe the bug
When removing a domain either through the web UI or via the API (Domains.delete), the corresponding email accounts are deleted from the database, but the Maildirs themselves are not removed.
The corresponding directory for the domain should be rm -rf'ed at the customers vmail basedir.
Additional context
Since Froxlor allows users to "keep" mail data in other situations independently from deleting accounts in mail_users, it may be beneficial to implement a similar functionality in this case as well.
As of now, yes, this is intended behaviour in order to not accidentally loose customer data.
I agree, a switch/parameter to specifically give option to remove files from the filesystem should be added
Describe the bug When removing a domain either through the web UI or via the API (Domains.delete), the corresponding email accounts are deleted from the database, but the Maildirs themselves are not removed.
System information
To Reproduce Steps to reproduce the behavior:
Expected behavior
Additionally to deleting the respective rows from
mail_users
here:https://github.com/Froxlor/Froxlor/blob/fb5958f5d415a41c84613c43b4e26ba986a29774/lib/Froxlor/Api/Commands/Domains.php#L2138
The corresponding directory for the domain should be
rm -rf
'ed at the customers vmail basedir.Additional context
Since Froxlor allows users to "keep" mail data in other situations independently from deleting accounts in mail_users, it may be beneficial to implement a similar functionality in this case as well.