Issue: Getting 422 response when trying to create invite for a deleted user.
Steps to reproduce:
- Invite a user through API
- Accept the invite
- Delete the user from admin settings
- Create an invite with the same email
This will result in 422 because there will be an existing invite for the same email. The fix is to remove the invite based relations of a user when the user is destroyed.