# Deleted subdomain from one user, but Hestia still says it belongs to another account

**URL:** <https://forum.hestiacp.com/t/deleted-subdomain-from-one-user-but-hestia-still-says-it-belongs-to-another-account/21095>\
**Category:** Users\
**Created:** [March 15, 2026, 1:50pm UTC](https://forum.hestiacp.com/t/deleted-subdomain-from-one-user-but-hestia-still-says-it-belongs-to-another-account/21095 "2026-03-15T13:50:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Himala](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/h/958977/32.png) [@Himala](https://forum.hestiacp.com/u/Himala)\
**Post date:** [March 15, 2026, 1:50pm UTC](https://forum.hestiacp.com/t/deleted-subdomain-from-one-user-but-hestia-still-says-it-belongs-to-another-account/21095/1 "2026-03-15T13:50:07Z")

</div>

Hi,

I’m trying to move a subdomain from one Hestia user to another.

Using fictional names:

- `example-main.com` is the main domain on the original user

- `app.example-main.com` was added there as an additional web domain

- I later deleted `app.example-main.com`

- then created a new user and tried to add `app.example-main.com` there

Hestia still says the domain belongs to another account.

Important detail:

- I did not create separate DNS or MX for the subdomain

- DNS and MX exist only for `example-main.com`

I checked the server manually and found no active references for the subdomain in the usual locations:

- no entry in `/usr/local/hestia/data/users/*/web*`

- no entry in `/home/*/conf/web/`

- no entry in `/etc/nginx/`

- no entry in `/etc/apache2/`

- no entry in `/usr/local/hestia/data/users/*/dns*`

- no entry in `/usr/local/hestia/data/users/*/mail*`

- no leftover web directory for the subdomain

The only remaining references are in logs/history and backup metadata:

- `history.log`

- `system.log`

- `backup.conf`

- `backup.log`

The logs show the domain was added and later deleted successfully.

I also rebuilt the user and web domains and restarted services, but the issue remains.

Commands already run:

```auto
grep -R "app.example-main.com" /usr/local/hestia/data/users/*/web*
grep -R "app.example-main.com" /home/*/conf/web/
grep -R "app.example-main.com" /etc/nginx/
grep -R "app.example-main.com" /etc/apache2/
grep -R "app.example-main.com" /usr/local/hestia/data/users/*/dns*
grep -R "app.example-main.com" /usr/local/hestia/data/users/*/mail*
v-rebuild-user olduser
v-rebuild-web-domains olduser
systemctl restart hestia
systemctl restart nginx
systemctl restart apache2

```

I do still have a mail account like `app@example-main.com` under the parent domain, but that is just an email address and not the same as the subdomain `app.example-main.com`.

I also have other parent domains and subdomains working under separate users on this same server, so that setup is supported.

Has anyone seen this before? Is there another internal place where Hestia stores domain ownership, or could this be a bug in the ownership check after deleting a subdomain?

Thanks.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [March 15, 2026, 3:21pm UTC](https://forum.hestiacp.com/t/deleted-subdomain-from-one-user-but-hestia-still-says-it-belongs-to-another-account/21095/2 "2026-03-15T15:21:34Z")

</div>

Hi,

Could you please show the output of this command?

```t
v-list-sys-config json | jq -r '.[]|.ENFORCE_SUBDOMAIN_OWNERSHIP'

```

Also, does the domain name contain a dash and is the top-level domain `.com`? If the answer is no, simulate the actual name using different letters while keeping the top level domain unchanged. Or, even better, provide the actual domain name.

---

<div class="post-metadata">

**Author:** ![Himala](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/h/958977/32.png) [@Himala](https://forum.hestiacp.com/u/Himala)\
**Post date:** [March 15, 2026, 5:19pm UTC](https://forum.hestiacp.com/t/deleted-subdomain-from-one-user-but-hestia-still-says-it-belongs-to-another-account/21095/3 "2026-03-15T17:19:26Z")

</div>

Hi,

Thank you for pointing me to that setting. That helped identify the issue.

I ran the command you suggested:

```auto
v-list-sys-config json | jq -r '.[]|.ENFORCE_SUBDOMAIN_OWNERSHIP'

```

The output was:

```auto
yes

```

After checking this setting, I realized that when **ENFORCE\_SUBDOMAIN\_OWNERSHIP is set to “yes”** , Hestia does not allow assigning a subdomain to a different user if the parent domain belongs to another account.

Example (using fictional names):

- `example-main.com` is owned by **user1**

- I wanted to move `app.example-main.com` to **user2**

Even though I deleted `app.example-main.com` from the first account, Hestia still prevented adding it to another user because the parent domain `example-main.com` belongs to user1.

To resolve this, I edited the Hestia configuration:

```auto
nano /usr/local/hestia/conf/hestia.conf

```

Then changed:

```auto
ENFORCE_SUBDOMAIN_OWNERSHIP='yes'

```

to:

```auto
ENFORCE_SUBDOMAIN_OWNERSHIP='no'

```

After saving the file, I restarted Hestia:

```auto
systemctl restart hestia

```

After that change, I was able to successfully add the subdomain to the new user account.

Hopefully this helps anyone else who runs into the same issue when trying to move a subdomain to a different user.

Thanks again for the guidance.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [March 15, 2026, 10:15pm UTC](https://forum.hestiacp.com/t/deleted-subdomain-from-one-user-but-hestia-still-says-it-belongs-to-another-account/21095/4 "2026-03-15T22:15:02Z")

</div>

Glad you solved it 😉

> [@Himala](#):
>
> To resolve this, I edited the Hestia configuration:

Next time you can use this:

```t
v-change-sys-config-value ENFORCE_SUBDOMAIN_OWNERSHIP no

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [April 14, 2026, 10:15pm UTC](https://forum.hestiacp.com/t/deleted-subdomain-from-one-user-but-hestia-still-says-it-belongs-to-another-account/21095/5 "2026-04-14T22:15:06Z")

</div>

Closed on April 14, 2026, 10:15pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
