Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Anonymous
How do I delete a portal instance using liferay-portal-5.2.1
February 26, 2009 1:41 PM
Answer

Anonymous

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 X
RE: How do I delete a portal instance using liferay-portal-5.2.1
February 26, 2009 1:54 PM
Answer

Stan X

Rank: Regular Member

Posts: 202

Join Date: January 27, 2008

Recent Posts

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
RE: How do I delete a portal instance using liferay-portal-5.2.1
March 19, 2009 7:54 AM
Answer

Amine Bousta

Rank: Junior Member

Posts: 32

Join Date: August 2, 2007

Recent Posts

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...
Tarun S. Kayasth
RE: How do I delete a portal instance using liferay-portal-5.2.1
March 30, 2010 4:12 AM
Answer

Tarun S. Kayasth

Rank: Regular Member

Posts: 159

Join Date: June 8, 2007

Recent Posts

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.]
Vishal Panchal
RE: How do I delete a portal instance using liferay-portal-5.2.1
February 21, 2014 5:02 AM
Answer

Vishal Panchal

Rank: Expert

Posts: 277

Join Date: May 20, 2012

Recent Posts

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