delete employee check dependencies