functionality to cancel registrations