Error deleting organisation if it has no member left. #1909

Closed
opened 2026-02-05 02:11:10 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @Velhenn on GitHub (May 6, 2024).

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 6, 2024). ### 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: ```
Author
Owner

@stefan0xC commented on GitHub (May 6, 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".

@stefan0xC commented on GitHub (May 6, 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.

@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.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1909