decidim-install
decidim-install copied to clipboard
Unable to delete organizations
Hi,
I am trying to delete organizations for several reasons (I created them with wrong languages, or just for testing purpose, etc.). When I click on the Delete button, the confirmation popup is prompted, but nothing happens after.
Do you know how I could delete my organizations please?
Thanks, Best regards
Is better to ask this kind of questions in Gitter. If you really want to delete organizations, you must do it by using the console directly.
However I propose you another aproach, just go to your instance super-administration panel: /system
and change the url of the organization you don't want anymore. Then just create a new and clean one with the former url. Then you will have plenty of time to delete the old organization at anytime.
Another option is to just reset the database.
Hi,
Thank you for your answer. I indeed changed my old URLs in order to create new fresh & clean organizations, but now I have like 10 unused organizations, which isn't so clean :D Anyway I will take a look at the way to delete organizations from the console, thanks!
You can just try these commands inside the console (use it at your own risk):
o=Decidim::Organization.first
o.destroy!
(Don't run the second if the organization is not the one!). It may fail if there is content dependent of the organization. Doesn't hurt to try