# Delete old data directory

**URL:** <https://help.nextcloud.com/t/delete-old-data-directory/111767>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** general\_question, ncp\
**Created:** [March 23, 2021, 9:34pm UTC](https://help.nextcloud.com/t/delete-old-data-directory/111767 "2021-03-23T21:34:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rude.Boy](https://help.nextcloud.com/user_avatar/help.nextcloud.com/rude.boy/32/13877_2.png) [@Rude.Boy](https://help.nextcloud.com/u/Rude.Boy)\
**Post date:** [March 23, 2021, 9:34pm UTC](https://help.nextcloud.com/t/delete-old-data-directory/111767/1 "2021-03-23T21:34:31Z")

</div>

NextCloudPi version v1.35.0  
NextCloudPi image NextCloudPi\_07-21-19  
Nextcloud version 20.0.8.1

Hi,  
i changed the data directory from the default path on the sd-card “/var/www/nextcloud/data” to a USB drive.  
i used the function in the NCP Setup.  
Every thing looks fine, but the original folder on the sd-card still exists und it takes a lot of space.

**Can I just delete it?**  
**How to delete it?**

---

<div class="post-metadata">

**Author:** ![OliverV](https://help.nextcloud.com/user_avatar/help.nextcloud.com/oliverv/32/5741_2.png) [@OliverV](https://help.nextcloud.com/u/OliverV)\
**Post date:** [March 24, 2021, 7:00am UTC](https://help.nextcloud.com/t/delete-old-data-directory/111767/2 "2021-03-24T07:00:45Z")

</div>

> [@Rude.Boy](#):
>
> /var/www/nextcloud/data

Best to make sure first, run ncp-report to get and verify system config and logs.

You can remove any folder from the command line using

> sudo rm -rf /path/to/folder

Please note this **can**  **not** be undone, once executed, there is no way to get the folder and its content back.

---

<div class="post-metadata">

**Author:** ![Rude.Boy](https://help.nextcloud.com/user_avatar/help.nextcloud.com/rude.boy/32/13877_2.png) [@Rude.Boy](https://help.nextcloud.com/u/Rude.Boy)\
**Post date:** [March 24, 2021, 6:37pm UTC](https://help.nextcloud.com/t/delete-old-data-directory/111767/3 "2021-03-24T18:37:01Z")

</div>

I always have a backup 🙂  
no problems so far. Thank you

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 8:58am UTC](https://help.nextcloud.com/t/delete-old-data-directory/111767/4 "2024-12-13T08:58:37Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 8:58am UTC](https://help.nextcloud.com/t/delete-old-data-directory/111767/5 "2024-12-13T08:58:41Z")

</div>


