Delete a liferay portal instance
Is there any way to dele开发者_如何学Cte a portal instance created in liferay 6??
No, there is no way to delete a portal instance in Liferay 6.0. But this might change in further releases (see the comments below this feature request: http://issues.liferay.com/browse/LPS-14023)
There is no way to delete the portal instance directly. If you really want to delete it, then you need to go to the portal database and try to delete all the table data with the specific companyId (as the portal instance is identified by companyId).
Check this
Liferay Wiki - Managing Instances
There is no way to delete portal instance from database. However in Liferay 6.x you will have an option to make it active or not. So If you inactive your portal instance then with that companyId you won't be able to make any action.
A Portlet's code is written just once. To make a Portlet "instancable" , set instancable = true in liferay-display.xml of that particular portlet. As far as deleting an instance is concerned, you just need to login as the Admin and delete that portlet from the page. This in no way affets other instances running on various pages of the same portal.
精彩评论