フォーラム

ホーム » Liferay Portal » English » 2. Using Liferay » General

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Abc Defg
How to delete multiple organisations with users?
2013/01/11 3:47
答え

Abc Defg

ランク: New Member

投稿: 16

参加年月日: 2012/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)
Olaf Kock
RE: How to delete multiple organisations with users?
2013/01/11 6:05
答え

Olaf Kock

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1825

参加年月日: 2008/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.