[GH-ISSUE #4540] Error deleting organisation if it has no member left. #1913

Closed
opened 2026-03-03 02:13:21 +03:00 by kerem · 2 comments
Owner

Originally created by @Velhenn on GitHub (May 5, 2024).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/4540

Error while trying to delete an organisation with no members

An organisation was created for test purposes, to which I was the sole member.
I removed the user from the organisation, then tried to delete it. The admin console returns the following error :
"Error deleting organisation
Error saving organisation"

### Environment (Generated via diagnostics page)
* Vaultwarden version: v1.30.5
* Web-vault version: v2024.1.2b
* OS/Arch: linux/x86_64
* Running within a container: true (Base: Debian)
* Environment settings overridden: true
* Uses a reverse proxy: true
* IP Header check: true (X-Real-IP)
* Internet access: true
* Internet access via a proxy: false
* DNS Check: true
* Browser/Server Time Check: true
* Server/NTP Time Check: true
* Domain Configuration Check: true
* HTTPS Check: true
* Database type: SQLite
* Database version: 3.44.0
* Clients used: 
* Reverse proxy and version: 
* Other relevant information: 

Originally created by @Velhenn on GitHub (May 5, 2024). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/4540 ### Error while trying to delete an organisation with no members An organisation was created for test purposes, to which I was the sole member. I removed the user from the organisation, then tried to delete it. The admin console returns the following error : "Error deleting organisation Error saving organisation" ``` ### Environment (Generated via diagnostics page) * Vaultwarden version: v1.30.5 * Web-vault version: v2024.1.2b * OS/Arch: linux/x86_64 * Running within a container: true (Base: Debian) * Environment settings overridden: true * Uses a reverse proxy: true * IP Header check: true (X-Real-IP) * Internet access: true * Internet access via a proxy: false * DNS Check: true * Browser/Server Time Check: true * Server/NTP Time Check: true * Domain Configuration Check: true * HTTPS Check: true * Database type: SQLite * Database version: 3.44.0 * Clients used: * Reverse proxy and version: * Other relevant information: ```
kerem closed this issue 2026-03-03 02:13:21 +03:00
Author
Owner

@stefan0xC commented on GitHub (May 5, 2024):

I removed the user from the organisation

How did you do that? If I try to leave or remove myself from the organization I get an error message that tells me that "The last owner can't leave".

<!-- gh-comment-id:2094993801 --> @stefan0xC commented on GitHub (May 5, 2024): > I removed the user from the organisation How did you do that? If I try to leave or remove myself from the organization I get an error message that tells me that "The last owner can't leave".
Author
Owner

@BlackDex commented on GitHub (May 6, 2024):

If you manually removed a user, then i suggest to also manually remove the org, because that is the only way this could have happened i think.

<!-- gh-comment-id:2095600670 --> @BlackDex commented on GitHub (May 6, 2024): If you manually removed a user, then i suggest to also manually remove the org, because that is the only way this could have happened i think.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#1913
No description provided.