Fórum

How do I delete a portal instance using liferay-portal-5.2.1

Anônimo, modificado 15 Anos atrás.

How do I delete a portal instance using liferay-portal-5.2.1

Mensagem: 1
I'm using liferay-portal-5.2.1, and I'm trying to figure out how to configure it.. I cannot find anything about deleting a portal instance..
Is there a way to delete a portal instance with the control panel UI?
Also, is there a way to delete a portal instance without the control panel UI?

Thanks
Stan M, modificado 15 Anos atrás.

RE: How do I delete a portal instance using liferay-portal-5.2.1

Regular Member Postagens: 208 Data de Entrada: 28/01/08 Postagens Recentes
There is none using the GUI that I am aware off. I remember reading a thread a while back that one can delete specific rows from specific tables to remove an instance, but I cannot find it now. If you search this forum, you may have a better luck than me.
Amine Bousta, modificado 15 Anos atrás.

RE: How do I delete a portal instance using liferay-portal-5.2.1

Junior Member Postagens: 32 Data de Entrada: 02/08/07 Postagens Recentes
Hello

I remember this post but I think it was not a clean remove.
A clean remove of an instance should delete any related data in database, jackrabbit and lucene index as well.
So I think that the better way to achieve this would be programmatically.
I don't know if a developer is working on this...
thumbnail
Tarun S. Kayasth, modificado 14 Anos atrás.

RE: How do I delete a portal instance using liferay-portal-5.2.1

Regular Member Postagens: 162 Data de Entrada: 08/06/07 Postagens Recentes
Hi All,

I just went into some depth of its code and found that while creating an instance Liferay creates a new company.

It updates multiple tables while creating new instance.
first entry you can find in 'Company' table. It creates a new entry for a country instance.
in relation to this companyId it creates default users in user_ table, contacts in contact_, groups in group_, permissions in permission_ and many more.. in short all those tables that has entry related to company are updated.

while creating an instance it calls EditInstanceAction.java and from there it calls addCompany() method
of CompanyServiceUtil.java. in this java file I sould not find any method to remove Company. so may be it is still in progress to remove an existing company (or instance).

Only thing that can be done is manual removal of company from database or do not set up the new instance information in host file.

Thanks,

Tarun Kayasth
[CIGNEX Technologies Pvt. Ltd.]
thumbnail
Vishal Panchal, modificado 10 Anos atrás.

RE: How do I delete a portal instance using liferay-portal-5.2.1

Expert Postagens: 289 Data de Entrada: 20/05/12 Postagens Recentes
Hi Tarun,

Thanks for the information, but I just wanted to check it whether do we have any way to delete a portal instance from UI/Control panel?

Any pointers will be appreciated.

Thanks,
Vishal