While I was trying to delete one of the SharePoint Managed Account , I  received the below error message
“An Object in the sharepoint administrative framework, “SPManagedAccountName=managed-account”, could not be deleted because other objects depend on it. Update all of these dependants to point to null or different  objects and retry this operation. The dependant objects are as follows:”\

Error message while trying to delete sharepoint managed account

1. First delete the dependent Service application pool account using the below PowerShell commands
    a.  Get-spserviceapplicationpool (it will display all SharePoint Service application details)
    b.  Remove-spserviceapplicationpool –identity “application pool name” (it will delete the service application pool)
2. Once you deleted the SharePoint service application pool, you can able to delete the SharePoint Managed account