I am looking to disable Default Account Teams. I was wondering if it could be done out of the box. I have looked into removing the related list but that is not possible since it doesn't give me the option. Would this be possible with code?
You can completely disable Account Teams by navigating to
Your Name > Setup > Customize > Accounts > Account Teams Click Enable Account Teams or Disable Account Teams.
Resources : https://login.salesforce.com/help/doc/en/customize_accountteams.htm http://login.salesforce.com/help/doc/en/accountteam_default.htm
You can turn off the automatic application of default account teams on a per-user basis via the checkbox when you edit the account team named 'Automatically add my default account team to accounts that I create or accounts that are transferred to me'.
If you want to remove account team members from an account you can use code similar to the following:
I guess the difficulty comes if you only want to remove the default account team but allow people to be added to that account team. In that case you'd probably need to interrogate the UserAccountTeamMember records associated with the user that owns the account, but you'd still have a good chance of false positives. Maybe only remove the account team members if the list exactly matches that of the users default account team?