Files and dirs are not removed after deleting addon/subdomain

rahnev

Well-Known Member
Jul 6, 2016
55
7
8
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

Technical Support Community Manager
Staff member
Apr 11, 2011
47,910
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
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.