...
NOTE that if there is an impersonation link between an application and a user the user cannot be deleted from the system until the link has been removed.
About SSO Management API in general, see Management API - SSO.
Manage impersonation from application side
...