Deleting Domain Error

hostanet

Verified User
Joined
Jun 11, 2003
Messages
43
Location
Central Illinois USA
I went to delete my primary domain and received this error.
(the domain was actually deleted)

Domain Deletion Results
Details
Error deleting hostanet.com
The directory /home/admin/domains/hostanet.com is not empty
hostanet.com's config files have been removed
Click HERE to return
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,071
Hello,

That's fine. I guess it shouldn't be reported as an error as we don't forcefully remove the domain's directory when the domain is removed (in case removed accidentally). It can be deleted from the filemanager if the User want's it gone.

John
 

ShinJii

Verified User
Joined
Mar 20, 2014
Messages
125
Hi,
I know it's 17 years old lol but... I have the same issue, domain directory is not deleting with API (in PHP) - why? what should I do?
I can't delete this even from "filemanager" in directadmin.

My system: CentOs 7.8
@smtalk @DirectAdmin Support
My code:
PHP:
 $da->set_method('post');
$da->query('/CMD_API_DOMAIN', array('delete' => 'anything', 'select0' => 'domain.com', 'confirmed' => 'anything'));
 
Last edited:

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
9,471
Location
LT, EU
What's the error when you're trying to remove it using file manager? If none - try DA in debug mode.
 

ShinJii

Verified User
Joined
Mar 20, 2014
Messages
125
What's the error when you're trying to remove it using file manager? If none - try DA in debug mode.
The same as through API.


cannot delete dir /domains/xxx: cannot openat() directory /domains/xxx/public_ftp: No Access
cannot unlinkat /domains/xxx/stats/webalizer.current: No Access
cannot unlinkat directory /domains/xxx/stats: dir is not empty
Unable to remove /domains/xxx: dir is not empty
 
Last edited:
Top