# Scan Group Directory with occ command

**URL:** <https://help.nextcloud.com/t/scan-group-directory-with-occ-command/20137>\
**Category:** ℹ️ Support\
**Tags:** teamfolders-app\
**Created:** [August 26, 2017, 3:37pm UTC](https://help.nextcloud.com/t/scan-group-directory-with-occ-command/20137 "2017-08-26T15:37:51Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![alivansheikh](https://help.nextcloud.com/letter_avatar/alivansheikh/32/6_22734026db12803ebb3e059622ac3534.png) [@alivansheikh](https://help.nextcloud.com/u/alivansheikh)\
**Post date:** [May 29, 2021, 12:08am UTC](https://help.nextcloud.com/t/scan-group-directory-with-occ-command/20137/9 "2021-05-29T00:08:21Z")

</div>

the following thread solved the problem for me:

> [@\[Solved\] Occ file:scan not working for \_\_groupfolder](https://help.nextcloud.com/t/solved-occ-file-scan-not-working-for-groupfolder/94017/2):
>
> After expanding my search to the Github page of the Nextcloud Group folder app found the appropriate occ cli commands. sudo -u www-data php /var/www/nextcloud/occ groupfolders:scan 2 Link: [https://github.com/nextcloud/groupfolders](https://github.com/nextcloud/groupfolders) Command line configuration via occ Group folders can be configured on the command line (cli) using the occ command: occ groupfolders:create \<name\> → create a group folder occ groupfolders:delete \<folder\_id\> [-f|--force] → delete a group folder and all its c…

cheers.

---

_[View the full topic](https://help.nextcloud.com/t/scan-group-directory-with-occ-command/20137)._
