Improve portal deletion on server side.