There are two options here.
1. You map orphan user to login if user is required. sp_change_users_login
2. Run below code and check which service user owns.
select s.name as ServiceName
from sys.database_principals p
inner join sys.services s on p.principal_id = s.principal_id
where p.name = 'nimit' --User Name (which you trying to delete)
It will give you list of Services Owned by that User. Now to remove this dependancy you have to ALTER SERVICE AUTHORIZATION by running below query. If there are multiple services than run below code for all services.
--Here nimit is the ServiceName I got from above query
ALTER AUTHORIZATION ON Service::nimit TO [dbo] --Transfer Service Authorization to dbo