For Mattermost v1.2.1 there's not a recommended way to remove teams from the database, and it's highly recommended nothing in the database be changed.
An updated tool for System Admins to delete teams, channels and users from the database will be coming in the December release (Mattermost v1.3). The new functionality has already been merged to master.