Foren

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

Anonym, geändert vor 15 Jahren.

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

Beitrag: 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, geändert vor 15 Jahren.

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

Regular Member Beiträge: 208 Beitrittsdatum: 28.01.08 Neueste Beiträge
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, geändert vor 15 Jahren.

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

Junior Member Beiträge: 32 Beitrittsdatum: 02.08.07 Neueste Beiträge
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, geändert vor 14 Jahren.

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

Regular Member Beiträge: 162 Beitrittsdatum: 08.06.07 Neueste Beiträge
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, geändert vor 10 Jahren.

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

Expert Beiträge: 289 Beitrittsdatum: 20.05.12 Neueste Beiträge
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