Deletion of organizations

Used Zammad version: 6.3.1-1722948970.e504ff79.bookworm
Used Zammad installation type: (source, package, docker-compose, …) package
Operating system: Debian 12
Browser + version: Firefox 128.0.3

Problem description:
I have imported some (>1000) organizations in a test environment and would now like to delete them in order to be able to import them again.

I have tried it in the rails console, but it only works for a maximum of 2 organizations

organizations = Organization.where(‘name LIKE ?’, ‘3%’)
organizations.each do |org|
org.members.each do |member|
member.update!(organization_id: nil)
end
org.destroy
end

Why is updating not an option if you are going to re-import them anyway…?

I do not need all imported organizations,
reimport contains only a part !

Hi @MrGeneration

I was also wondering why you cannot delete organizations :thinking:

or am I missing something?

Thx

There’s only one place where you can remove organizations: Within Data Privacy together with the last organization member.

All reasoning I could provide won’t make you happy, so I’ll leave it at that.

If you believe this is a missing feature, you can add it to feature requests if it doesn’t exist yet: