added function to remove portals.