Hi Barbara
If you are considering integration with an external HR system then there are some API's that your developers can use described here
The solution depends on what level of integration is required and what version and experience your development team or partner have.
Preventing deletion of account depends on the authentication method used
Regards