Unable to delete ShoreTel trunk group So you are trying to delete a trunk group in Mitel Connect (previously ShoreTel) and you just keep getting this blue bar moving across the screen over and over. Why you no delete!? Quick Note: Please be sure that all each user group has this old trunk group removed from the Outgoing trunk groups section. Today, we will go through what is causing this and how to resolve it. First off, I want to warn you that this does require us to get into the database. Let's dive in! What is causing this? Prior to the ShoreTel connect days we use to have a section on user profiles that would specify your default trunk group. Since the move to bigger and brighter versions, this has been removed from the GUI, but... not from the database. Since we no longer have the option in the bulk edit tool to change this default trunk group, we have to go into the database. *Warning*: Anything you do in the database is not Mitel recommended. Just like the registry on your computer, you could seriously do damage to your phone system. I highly recommend doing a database backup prior to any work we do here. First, we will do our database backup. D:Program Files (x86)Shoreline CommunicationsShoreWare ServerMySQLMySQL ServerExamplesBackupConfig.bat Our Shoreline Communications folder is in D: because if our OS ever get's corrupted or crypto locked, then our telephone system files are still safe. Don't forget to grab your backup from C: to a safe location as this is the default location it saves to, unless you changed your backup script. To get into the database, you will need a program like SQLyog or any SQL database client. Setup your client with the proper credentials to access the Mitel Connect database. Now we want to find out what is the TrunkGroupID for our trunk group that we are trying to delete. In our example it shows TrunkGroupID 6. Now that we know the TrunkgroupID, we can go find out what users are still configured to use this. After going to the users table we want to search to the right and find the table header called DefaultTrunkGroupID. Make sure that you are viewing all records, box circled in red, as most programs will limit the amount of rows you view so that the data loads faster. What we see in this screenshot is that we have a user with our TrunkGroupID 6. We want to change this, so that the database no longer has a reference to the Trunk Group we are trying to delete. I want to set this user's default trunk group to 'Denmark SIP' TrunkGroupID 10. I chose this because this is the current trunks the user should already be using since the old trunk group is actually no longer functional. That's it for changes! We will want to scroll up and down all of the users to ensure these users are changed to the current trunk group ID that they are using today. Once you complete this step, be sure to hit save! When you go back into Mitel Director be sure to refresh your page, you should now be able to delete the trunk group.