Files and dirs are not removed after deleting addon/subdomain

rahnev

Well-Known Member
Jul 6, 2016
69
7
58
Bulgaria
cPanel Access Level
Root Administrator
When you delete addon/subdomain files and dirs, associated with this domain are not deleted and stay on the file system. Tested on cPanel v72.

Is this a feature or bug? Is there a solution for this behavior?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello @rahnev,

It's by design that files/directories stored under the document root associated with an addon domain or subdomain are not removed when the domain itself is removed from the cPanel account. I encourage you to vote and add feedback to the following feature request if this is something you'd like to see added to the product:

Option to delete folder when deleting domain

Thank you.