The portlet code is written only once. To make the portlet “invulnerable”, set instancable = true to liferay-display.xml of this particular portlet. As for deleting an instance, you just need to log in as an administrator and remove this portlet from the page. This in no way affects other instances running on different pages of the same portal.
source
share