If you need to deactivate/invalidate a customer portal URL, follow these steps:
Go to the Customer you need to invalidate the URL
Select "Configuration" tab
Click on the calendar icon on the line "Invalidate customer portal URLs"
Click on "OK"
It means that any URL to the customer portal you created before that date and time will not work anymore.