Help for REST API call to remove assigned account definition and delete employee records

Bosses

May someone please help or teach me how to do REST API for

1. remove assigned account definition for both AD Account and Exchange Mailbox

2. delete IDM employee records

if you have the code, that will save my life,

Thanks Thanks Thanks

Gary