Cannot delete group

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32
  • Operating system and version (e.g., Ubuntu 24.04):
    • Nethserver 8 within Debian 13 OS
  • Web server and version (e.g, Apache 2.4.25):
    • I believe nginx comes with NS8
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • I believe Traefik comes with NS8
  • PHP version (e.g, 8.3):
    • replace me
  • Is this the first time you’ve seen this error? (Yes / No):
    • replace me
  • When did this problem seem to first start?
    • replace me
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • replace me
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • replace me

Summary of the issue you are facing:

[New installation within Nethserver 8. Able to access Nextcloud as an admin. Using Team Folders, I created a few folders. I then created a few groups and assigned them to users. One group in particular I cannot assign to users, nor can I delete it now. ]

Steps to replicate it (hint: details matter!):

  1. Installed Team Folders

  2. Created users and groups

  3. Assigned groups to users

  4. Assigned groups to Team Folders

Log entries


Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

2026-04-07T16:25:00-04:00 [1:nextcloud1:nextcloud-app] crond: USER www-data pid 193 cmd php -f /var/www/html/cron.php
2026-04-07T16:25:03-04:00 [1:nextcloud1:nextcloud-redis] 1:M 07 Apr 2026 20:25:03.052 * 100 changes in 300 seconds. Saving...
2026-04-07T16:25:03-04:00 [1:nextcloud1:nextcloud-redis] 1:M 07 Apr 2026 20:25:03.052 * Background saving started by pid 25
2026-04-07T16:25:03-04:00 [1:nextcloud1:nextcloud-redis] 25:C 07 Apr 2026 20:25:03.184 * DB saved on disk
2026-04-07T16:25:03-04:00 [1:nextcloud1:nextcloud-redis] 25:C 07 Apr 2026 20:25:03.185 * Fork CoW for RDB: current 1 MB, peak 1 MB, average 0 MB
2026-04-07T16:25:03-04:00 [1:nextcloud1:nextcloud-redis] 1:M 07 Apr 2026 20:25:03.253 * Background saving terminated with success
2026-04-07T16:25:21-04:00 [1:nextcloud1:nextcloud-app] 127.0.0.1 -  07/Apr/2026:20:25:21 +0000 "GET /ocs/v2.php" 304
2026-04-07T16:25:21-04:00 [1:traefik1:traefik] 99.32.54.25 - - [07/Apr/2026:20:25:21 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "-" 2091 "nextcloud1-https@file" "http://127.0.0.1:20003" 27ms
2026-04-07T16:25:24-04:00 [1:nextcloud1:nextcloud-app] 127.0.0.1 -  07/Apr/2026:20:25:24 +0000 "PUT /ocs/v2.php" 200
2026-04-07T16:25:24-04:00 [1:traefik1:traefik] 99.32.54.25 - - [07/Apr/2026:20:25:24 +0000] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/2.0" 200 176 "-" "-" 2092 "nextcloud1-https@file" "http://127.0.0.1:20003" 25ms
2026-04-07T16:25:30-04:00 [1:nextcloud1:nextcloud-app] 127.0.0.1 -  07/Apr/2026:20:25:30 +0000 "GET /index.php" 200
2026-04-07T16:25:30-04:00 [1:traefik1:traefik] 99.32.54.25 - - [07/Apr/2026:20:25:30 +0000] "GET /index.php/apps/files/preview-service-worker.js HTTP/2.0" 200 5359 "-" "-" 2093 "nextcloud1-https@file" "http://127.0.0.1:20003" 26ms
2026-04-07T16:25:35-04:00 [1:nextcloud1:nextcloud-app] NOTICE: PHP message: [nextcloud][no app in context][3] {"reqId":"aE6K5qMPDqaTcWvJKzM5","level":3,"time":"2026-04-07T20:25:35+00:00","remoteAddr":"99.32.54.25","user":"a64e6cd7-aee9-4611-bd36-667b1fcad379","app":"no app in context","method":"DELETE","url":"/ocs/v2.php/cloud/groups/Rennco","scriptName":"/ocs/v2.php","message":"{\"Exception\":\"Exception\",\"Message\":\"Could not delete existing group Rennco in LDAP backend.\",\"Code\":0,\"Trace\":[{\"function\":\"deleteGroup\",\"class\":\"OCA\\\\User_LDAP\\\\Group_LDAP\",\"type\":\"->\",\"args\":[\"Rennco\"]},{\"file\":\"/var/www/html/apps/user_ldap/lib/Group_Proxy.php\",\"line\":55,\"function\":\"call_user_func_array\",\"args\":[[{\"__class__\":\"OCA\\\\User_LDAP\\\\Group_LDAP\"},\"deleteGroup\"],[\"Rennco\"]]},{\"file\":\"/var/www/html/apps/user_ldap/lib/Proxy.php\",\"line\":153,\"function\":\"walkBackends\",\"class\":\"OCA\\\\User_LDAP\\\\Group_Proxy\",\"type\":\"->\",\"args\":[\"Rennco\",\"deleteGroup\",[\"Rennco\"]]},{\"file\":\"/var/www/html/apps/user_ldap/lib/Group_Proxy.php\",\"line\":172,\"function\":\"handleRequest\",\"class\":\"OCA\\\\User_LDAP\\\\Proxy\",\"type\":\"->\",\"args\":[\"Rennco\",\"deleteGroup\",[\"Rennco\"]]},{\"file\":\"/var/www/html/lib/private/Group/Group.php\",\"line\":320,\"function\":\"deleteGroup\",\"class\":\"OCA\\\\User_LDAP\\\\Group_Proxy\",\"type\":\"->\",\"args\":[\"Rennco\"]},{\"file\":\"/var/www/html/apps/provisioning_api/lib/Controller/GroupsController.php\",\"line\":318,\"function\":\"delete\",\"class\":\"OC\\\\Group\\\\Group\",\"type\":\"->\",\"args\":[]},{\"file\":\"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php\",\"line\":204,\"function\":\"deleteGroup\",\"class\":\"OCA\\\\Provisioning_API\\\\Controller\\\\GroupsController\",\"type\":\"->\",\"args\":[\"Rennco\"]},{\"file\":\"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php\",\"line\":118,\"function\":\"executeController\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"type\":\"->\",\"args\":[{\"__class__\":\"OCA\\\\Provisioning_API\\\\Controller\\\\GroupsController\"},\"deleteGroup\"]},{\"file\":\"/var/www/html/lib/private/AppFramework/App.php\",\"line\":153,\"function\":\"dispatch\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"type\":\"->\",\"args\":[{\"__class__\":\"OCA\\\\Provisioning_API\\\\Controller\\\\GroupsController\"},\"deleteGroup\"]},{\"file\":\"/var/www/html/lib/private/Route/Router.php\",\"line\":321,\"function\":\"main\",\"class\":\"OC\\\\AppFramework\\\\App\",\"type\":\"::\",\"args\":[\"OCA\\\\Provisioning_API\\\\Controller\\\\GroupsController\",\"deleteGroup\",{\"__class__\":\"OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer\"},{\"_route\":\"ocs.provisioning_api.groups.deletegroup\",\"groupId\":\"Rennco\"}]},{\"file\":\"/var/www/html/ocs/v1.php\",\"line\":61,\"function\":\"match\",\"class\":\"OC\\\\Route\\\\Router\",\"type\":\"->\",\"args\":[\"/ocsapp/cloud/groups/Rennco\"]},{\"file\":\"/var/www/html/ocs/v2.php\",\"line\":8,\"args\":[\"/var/www/html/ocs/v1.php\"],\"function\":\"require_once\"}],\"File\":\"/var/www/html/apps/user_ldap/lib/Group_LDAP.php\",\"Line\":1275,\"message\":\"Could not delete existing group Rennco in LDAP backend.\",\"exception\":{},\"CustomMessage\":\"Could not delete existing group Rennco in LDAP backend.\"}","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:149.0) Gecko/20100101 Firefox/149.0","version":"32.0.6.1"}
2026-04-07T16:25:35-04:00 [1:nextcloud1:nextcloud-app] 127.0.0.1 -  07/Apr/2026:20:25:35 +0000 "DELETE /ocs/v2.php" 500
2026-04-07T16:25:35-04:00 [1:traefik1:traefik] 99.32.54.25 - - [07/Apr/2026:20:25:35 +0000] "DELETE /ocs/v2.php/cloud/groups/Rennco HTTP/2.0" 500 100 "-" "-" 2094 "nextcloud1-https@file" "http://127.0.0.1:20003" 32ms

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Hello @dalbring,

welcome to the Nextcloud community! :handshake:

It seems the group replicated from LDAP and you must delete the group there

Thank you sir. That did the trick.