Foros de discusión

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

Anónimo, modificado hace 15 años.

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

Mensaje: 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 hace 15 años.

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

Regular Member Mensajes: 208 Fecha de incorporación: 28/01/08 Mensajes recientes
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 hace 15 años.

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

Junior Member Mensajes: 32 Fecha de incorporación: 2/08/07 Mensajes recientes
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 hace 14 años.

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

Regular Member Mensajes: 162 Fecha de incorporación: 8/06/07 Mensajes recientes
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 hace 10 años.

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

Expert Mensajes: 289 Fecha de incorporación: 20/05/12 Mensajes recientes
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