Add and Delete Customer Portal user via Deluge

Add and Delete Customer Portal user via Deluge

Using Creator to build an app involving a customer portal. I'm trying to integrate the customer portal for the first time and it is raising questions, mainly because it's new territory.

Is it possible to add a new user to the customer portal via deluge? For example, if an existing user invites/refers another potential user to try our app, is there code to automate via deluge, setting up an account ready to go for them?

The referral would include their email address, and a workflow would set up the portal user and email the login info to the new customer. The point would be that, no one on my end would need to be involved to manually set up the account. This would remove the inherent delay of having a person involved and the random delays from error, sickness, vacation, performance, etc

The idea is to offer a free trial period, and after that, require either pay to stay or be removed from the portal. The removal, as above, would be triggered by the calendar, vs having to involve a person. And so the second question, is it possible via deluge to remove that customer?

Thanks!
Kevin