# I created a shopware 6 plugin but when activating it, it shows cannot delete /var/cache/h97xxxxxxxxxxxxxx/ directory not empty

**URL:** <https://forum.shopware.com/t/i-created-a-shopware-6-plugin-but-when-activating-it-it-shows-cannot-delete-var-cache-h97xxxxxxxxxxxxxx-directory-not-empty/86687>\
**Category:** Shopware 6 (English)\
**Tags:** general, programming, plugin-wünsche\
**Created:** [7. April 2021 um 04:31 UTC](https://forum.shopware.com/t/i-created-a-shopware-6-plugin-but-when-activating-it-it-shows-cannot-delete-var-cache-h97xxxxxxxxxxxxxx-directory-not-empty/86687 "2021-04-07T04:31:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![satvik.shukla](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@satvik.shukla](https://forum.shopware.com/u/satvik.shukla)\
**Post date:** [7. April 2021 um 04:31 UTC](https://forum.shopware.com/t/i-created-a-shopware-6-plugin-but-when-activating-it-it-shows-cannot-delete-var-cache-h97xxxxxxxxxxxxxx-directory-not-empty/86687/1 "2021-04-07T04:31:21Z")

</div>

projekte/treppe/var/cache/prod\_hd174669f24b5b5032ac120086360367c/pools/ONphTzeVip/Q): Directory not empty"

after deleting this directory another one comes how to solve it??  
thanks

---

<div class="post-metadata">

**Author:** ![CarstenHarnisch](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@CarstenHarnisch](https://forum.shopware.com/u/CarstenHarnisch)\
**Post date:** [10. April 2021 um 13:17 UTC](https://forum.shopware.com/t/i-created-a-shopware-6-plugin-but-when-activating-it-it-shows-cannot-delete-var-cache-h97xxxxxxxxxxxxxx-directory-not-empty/86687/3 "2021-04-10T13:17:03Z")

</div>

No idea where you development is taking place. A common problem I have once a while is that I logging on the server as root or doing a sudo then triggering a bin/console cache:clear when you after this run another shopware command the cache folder might get the wrong file system rights.

Take a look to the var/cache folder and check the filesystem acls or rights. also check the owner. So in case these are wrong go and correct them.

best
