掲示板

How to delete multiple organisations with users?

11年前 に Abc Defg によって更新されました。

How to delete multiple organisations with users?

New Member 投稿: 16 参加年月日: 12/05/11 最新の投稿
Organizations > select multiple organisations > select Delete
Liferay fails to delete organisations because:
" You have entered invalid data. Please try again. " <- completely useless error message ;)
"You cannot delete organizations that have suborganizations or users. " <- thank you for NOT telling me which organisations from selected ones have problems.

Probably all the organisations have a user associated. I was expecting Liferay to ask "Do you like to remove users association" or something similar, so it can continue with deleting the organisation. Sadly, this is not how Liferay behaves.
So, my question is, how can we delete hundreds of organisations and all the content.
We are stuck with Liferay Portal Community Edition 6.0.5 CE (Bunyan / Build 6005)
thumbnail
11年前 に Olaf Kock によって更新されました。

RE: How to delete multiple organisations with users?

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
If you're familiar with the API you can use the scripting console, in the Server Administration section of ControlPanel. Careful though: There's no security net. As you're doing destructive work, you might want to have your backup ready.
You can use javascript, groovy etc. for the scripts.