# How to delete subdomain directories?

**URL:** <https://forum.infinityfree.com/t/how-to-delete-subdomain-directories/64217>\
**Category:** Hosting Support\
**Created:** [July 20, 2022, 1:42pm UTC](https://forum.infinityfree.com/t/how-to-delete-subdomain-directories/64217 "2022-07-20T13:42:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmfdev](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/cmfdev/32/26551_2.png) [@cmfdev](https://forum.infinityfree.com/u/cmfdev)\
**Post date:** [July 20, 2022, 1:42pm UTC](https://forum.infinityfree.com/t/how-to-delete-subdomain-directories/64217/1 "2022-07-20T13:42:29Z")

</div>

Hello. I recently deleted some subdomains. But when I go to delete the subdomain folders from the server, it tells me “Error during FTP delete directory, permission denied at” and then the path to the folder.

How would I do this?

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [July 20, 2022, 1:51pm UTC](https://forum.infinityfree.com/t/how-to-delete-subdomain-directories/64217/2 "2022-07-20T13:51:44Z")

</div>

You cannot.  
You can at most rename them

---

<div class="post-metadata">

**Author:** ![cmfdev](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/cmfdev/32/26551_2.png) [@cmfdev](https://forum.infinityfree.com/u/cmfdev)\
**Post date:** [July 20, 2022, 1:52pm UTC](https://forum.infinityfree.com/t/how-to-delete-subdomain-directories/64217/3 "2022-07-20T13:52:43Z")

</div>

Oh ok

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [July 20, 2022, 1:53pm UTC](https://forum.infinityfree.com/t/how-to-delete-subdomain-directories/64217/4 "2022-07-20T13:53:38Z")

</div>

Welcome!

@KangJL is correct. The reason is because you are not allowed edit permission on the root folders. Because you share the server with other people, and because you can have multiple domain under your account, it is for your own security to prevent hacks and contain vulnerabilities on your site.

While you cannot delete the folder, you are allowed to rename it. I would recommend something like “Deleted”.

---

<div class="post-metadata">

**Author:** ![cmfdev](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/cmfdev/32/26551_2.png) [@cmfdev](https://forum.infinityfree.com/u/cmfdev)\
**Post date:** [July 20, 2022, 2:18pm UTC](https://forum.infinityfree.com/t/how-to-delete-subdomain-directories/64217/5 "2022-07-20T14:18:02Z")

</div>

Thanks for the tip!

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [July 27, 2022, 2:18pm UTC](https://forum.infinityfree.com/t/how-to-delete-subdomain-directories/64217/6 "2022-07-27T14:18:23Z")

</div>

Closed on July 27, 2022, 2:18pm UTC

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