[cloudreve] [Info] 2026-03-11 04:59:32 [/home/aaronliu/vsts/_work/2/s/pkg/logging/logger.go:193] [Cid: 3290494e-1d3b-45d1-982b-8a3cd1ade488] [Incoming] 200 | 21.411948ms | 38.252.57.32 | POST "/api/v4/admin/user/batch/delete"
[postgresql] 2026-03-10 20:59:32.172 UTC [136] ERROR: update or delete on table "users" violates foreign key constraint "oauth_grants_users_oauth_grants" on table "oauth_grants"
[postgresql] 2026-03-10 20:59:32.172 UTC [136] DETAIL: Key (id)=(2) is still referenced from table "oauth_grants".
[postgresql] 2026-03-10 20:59:32.172 UTC [136] STATEMENT: DELETE FROM "users" WHERE "users"."id" = $1
to just delete the User.
Self Checks
Cloudreve version
4.14.1
Pro or Community Edition
Community (Open Source)
Database type
PostgreSQL
Browser and operating system
Chrome 145
Steps to reproduce
I get this error:
Database operation failed. (Failed to delete user)Here's the log:
✔️ Expected Behavior
to just delete the User.
❌ Actual Behavior
giving me an error:
Database operation failed. (Failed to delete user)Addition context information
No response